Skip to content

@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 ​

Worker

reporter ​

TaskReporter

options? ​

InProcessOptions = {}

Returns ​

InProcessTransport

Properties ​

kind ​

readonly kind: "in-process" = "in-process"

Defined in: sdk/ts/sdk/src/host/transport/in-process.ts:68

Always in-process.

Implementation of ​

TaskTransport.kind

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 ​

PushedTask

Returns ​

Promise<PushResult>

Implementation of ​

TaskTransport.push