Skip to main content
Glama
LazyIterableIterator.js•463 B
class LazyIterableIterator { constructor(producer) { this.producer = producer; } [Symbol.iterator]() { if (this.it === undefined) { this.it = this.producer(); } return this.it; } next() { if (this.it === undefined) { this.it = this.producer(); } return this.it.next(); } } export function makeLazy(producer) { return new LazyIterableIterator(producer); }

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