class Channel implements Sender<T>, Receiver<T>, Closer, AsyncIterable<T>Re-exportimport { Channel } from "https://deno.land/x/async_channels@v1.0.0-alpha45/mod.ts"; ConstructorsnewChannel(bufferSize?, options?: ChannelOptions)Constructs a new Channel with an optional buffer. Type ParametersTThe type of value held by this channel. Propertiesprotectedcurrent: StateprotectedoptionalcurrentVal: Tprotectedreadonlyqueue: Queue<T>protectedstateEventTarget: EventTargetprotectedtransitionEventTarget: EventTargetMethodsprotecteddebug(...args: unknown[])protectederror(...args: unknown[])protectedupdateState(t: Transition, val?: T): voidprotectedwaitForState(...states: State[]): Promise<T | undefined>close()filter(fn: (val: T) => boolean | Promise<boolean>,bufferSize?,options?: ChannelPipeOptions | undefined,): Receiver<T>flatMap<TOut>(fn: (val: T) => Iterable<TOut> | AsyncIterable<TOut>,bufferSize?,options?: ChannelPipeOptions | undefined,): Receiver<TOut>forEach(fn: (val: T) => void | Promise<void>,bufferSize?,options?: ChannelPipeOptions | undefined,): Receiver<void>map<TOut>(fn: (val: T) => TOut | Promise<TOut>,bufferSize?,options?: ChannelPipeOptions | undefined,): Receiver<TOut>receive(abortCtrl?: AbortController): Promise<[T, true] | [undefined, false]>reduce(fn: (prev: T, current: T) => T | Promise<T>,bufferSize?,options?: ChannelPipeOptions | undefined,): Receiver<T>send(val: T, abortCtrl?: AbortController): Promise<void>[Symbol.asyncIterator](): AsyncGenerator<T, void, void>Static Methodsfrom<T>(input: Iterable<T> | AsyncIterable<T>,bufferSize?: number,options?: ChannelOptions,): Receiver<T>