UNPKG

async-array-buffer

Version:

This module allows to allocate and deallocate ArrayBuffers without blocking the main thread.

6 lines 379 B
export declare const allocate: (length: number) => Promise<ArrayBuffer>; export declare const connect: () => Promise<MessagePort>; export declare const deallocate: (arrayBuffer: ArrayBuffer) => void; export declare const disconnect: (port: MessagePort) => Promise<void>; export declare const isSupported: () => Promise<boolean>; //# sourceMappingURL=/build/es2018/module.d.ts.map