Skip to content

index | @vltpkg/tar

References

Pool

Re-exports Pool

unpack

Re-exports unpack

UnpackRequest

Re-exports UnpackRequest

Classes

Worker

Basically just a queue of unpack requests, to keep them throttled to a reasonable amount of parallelism

Constructors

new Worker()
new Worker(onMessage): Worker
Parameters

onMessage

Returns

Worker

Defined in

worker.ts:20

Properties

onMessage()
onMessage: (m) => void;
Parameters

m: ResponseError | ResponseOK

Returns

void

Defined in

worker.ts:18

Methods

process()
process(req): Promise<void>
Parameters

req: UnpackRequest

Returns

Promise<void>

Defined in

worker.ts:24

Type Aliases

ResponseError

type ResponseError: object;

Type declaration

error
error: unknown
id
id: number

Defined in

worker.ts:4


ResponseOK

type ResponseOK: object;

Type declaration

id
id: number
ok
ok: true

Defined in

worker.ts:5

Functions

isResponseOK()

function isResponseOK(o): o is ResponseOK

Parameters

o: unknown

Returns

o is ResponseOK

Defined in

worker.ts:10