Skip to main content
Module

x/denyard/deps.ts>EventEmitter#close

Lanyard API, Websocket wrapper for Deno
Latest
method EventEmitter.prototype.close
import { EventEmitter } from "https://deno.land/x/denyard@0.1.0/deps.ts";

Closes async iterators, allowing them to finish and removes listeners. If no eventName is specified, all iterators will be closed, including the iterator for the class.

Type Parameters

K extends keyof E

Parameters

optional
eventName: K

Returns

Promise<void>