Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/async/queue.ts>Queue#put

🦕 Asynchronous primitive modules loosely port from Python's asyncio for Deno.
Go to Latest
method Queue.prototype.put
import { Queue } from "https://deno.land/x/async@v1.1.2/queue.ts";

Put an item into the queue. If the queue is full, wait until a free slot is available before adding the item.

Parameters

value: T

Returns

Promise<void>