Interface: ChannelWorker

Channel.ChannelWorker

Table of contents

Properties

Methods

Properties

inputOrDispatch

inputOrDispatch: () => number

Type declaration

▸ (): number

Returns

number

Defined in

webR/chan/channel.ts:103


onMessageFromMainThread

onMessageFromMainThread: (msg: Message) => void

Type declaration

▸ (msg): void

Parameters
Name Type
msg Message
Returns

void

Defined in

webR/chan/channel.ts:105


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:104

Methods

handleInterrupt

handleInterrupt(): void

Returns

void

Defined in

webR/chan/channel.ts:100


read

read(): Message

Returns

Message

Defined in

webR/chan/channel.ts:99


resolve

resolve(): void

Returns

void

Defined in

webR/chan/channel.ts:96


run

run(args): void

Parameters

Name Type
args string[]

Returns

void

Defined in

webR/chan/channel.ts:102


setInterrupt

setInterrupt(interrupt): void

Parameters

Name Type
interrupt () => void

Returns

void

Defined in

webR/chan/channel.ts:101


write

write(msg, transfer?): void

Parameters

Name Type
msg Message
transfer? [Transferable]

Returns

void

Defined in

webR/chan/channel.ts:97


writeSystem

writeSystem(msg, transfer?): void

Parameters

Name Type
msg Message
transfer? [Transferable]

Returns

void

Defined in

webR/chan/channel.ts:98