Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grm/src/request_iter.ts>RequestIter

MTProto API Client for Deno 🦕
Go to Latest
class RequestIter
implements AsyncIterable<any>
import { RequestIter } from "https://deno.land/x/grm@0.5.1/src/request_iter.ts";

Constructors

new
RequestIter(
limit?: number,
params?: BaseRequestIterInterface,
args?,
)

Properties

private
index: number
private
lastLoad: number
protected
buffer: Array<any> | undefined
protected
left: number
protected
readonly
limit: number
protected
total: number | undefined
kwargs: Record<never, never>
reverse: boolean | undefined
waitTime: number | undefined

Methods

_init(_kwargs: any): Promise<boolean | void>
_loadNextChunk(): Promise<boolean | undefined>
[Symbol.asyncIterator](): AsyncIterator<any, any, undefined>