Skip to main content
Glama
scheduler.js•778 B
import { buildSchedulerFor } from './_internals/helpers/BuildSchedulerFor.js'; import { SchedulerArbitrary } from './_internals/SchedulerArbitrary.js'; export function scheduler(constraints) { const { act = (f) => f() } = constraints || {}; return new SchedulerArbitrary(act); } function schedulerFor(customOrderingOrConstraints, constraintsOrUndefined) { const { act = (f) => f() } = Array.isArray(customOrderingOrConstraints) ? constraintsOrUndefined || {} : customOrderingOrConstraints || {}; if (Array.isArray(customOrderingOrConstraints)) { return buildSchedulerFor(act, customOrderingOrConstraints); } return function (_strs, ...ordering) { return buildSchedulerFor(act, ordering); }; } export { schedulerFor };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Digital-Defiance/mcp-screenshot'

If you have feedback or need assistance with the MCP directory API, please join our Discord server