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

x/grm/src/extensions/async_queue.ts>AsyncQueue

MTProto API Client for Deno 🦕
Go to Latest
class AsyncQueue
import { AsyncQueue } from "https://deno.land/x/grm@0.5.1/src/extensions/async_queue.ts";

Constructors

new
AsyncQueue()

Properties

private
canGet: Promise<unknown>
private
canPush: boolean | Promise<boolean>
private
resolveGet: (value?: any) => void
private
resolvePush: (value?: any) => void
_queue: any[]

Methods

pop()
push(value: any)