UNPKG

nanolith

Version:

Multi-threading in no time with seamless TypeScript support.

7 lines (6 loc) 397 B
import { WritableToPort } from './writable_to_port.js'; import type { Messagable } from '../types/streams.js'; /** * Ensure the other thread is ready to start receiving data before resolving with a Writable stream. */ export declare function prepareWritableToPortStream<Target extends Messagable>(target: Target, metaData: Record<any, any>, timeoutMs?: number): Promise<WritableToPort<Target>>;