Interface: ChannelWorker

Channel.ChannelWorker

Table of contents

Properties

Methods

Properties

inputOrDispatch

inputOrDispatch: () => number

Type declaration

▸ (): number

Returns

number

Defined in

webR/chan/channel.ts:93


setDispatchHandler

setDispatchHandler: (dispatch: (msg: Message) => void) => void

Type declaration

▸ (dispatch): void

Parameters
Name Type
dispatch (msg: Message) => void
Returns

void

Defined in

webR/chan/channel.ts:94

Methods

handleInterrupt

handleInterrupt(): void

Returns

void

Defined in

webR/chan/channel.ts:90


read

read(): Message

Returns

Message

Defined in

webR/chan/channel.ts:89


resolve

resolve(): void

Returns

void

Defined in

webR/chan/channel.ts:87


run

run(args): void

Parameters

Name Type
args string[]

Returns

void

Defined in

webR/chan/channel.ts:92


setInterrupt

setInterrupt(interrupt): void

Parameters

Name Type
interrupt () => void

Returns

void

Defined in

webR/chan/channel.ts:91


write

write(msg, transfer?): void

Parameters

Name Type
msg Message
transfer? [Transferable]

Returns

void

Defined in

webR/chan/channel.ts:88