@oona/vlo / host / InProcessTransport
Class: InProcessTransport
Defined in: sdk/ts/sdk/src/host/transport/in-process.ts:66
Runs tasks on a worker in this process. Built by the dispatcher for each worker:<queue> role.
Implements
Constructors
Constructor
new InProcessTransport(
worker,reporter,options?):InProcessTransport
Defined in: sdk/ts/sdk/src/host/transport/in-process.ts:71
reporter is where the handler's result goes; usually localReporter(ctx).
Parameters
worker
reporter
options?
InProcessOptions = {}
Returns
InProcessTransport
Properties
kind
readonlykind:"in-process"="in-process"
Defined in: sdk/ts/sdk/src/host/transport/in-process.ts:68
Always in-process.
Implementation of
Methods
push()
push(
task):Promise<PushResult>
Defined in: sdk/ts/sdk/src/host/transport/in-process.ts:78
Always accepts. The handler starts on the next macrotask, after the dispatcher has committed running.
Parameters
task
Returns
Promise<PushResult>