Interface: ChannelWorker

Channel.ChannelWorker

Table of contents

Properties

Methods

Properties

inputOrDispatch

inputOrDispatch: () => number

Type declaration

▸ (): number

Returns

number

Defined in

webR/chan/channel.ts:109


onMessageFromMainThread

onMessageFromMainThread: (msg: Message) => void

Type declaration

▸ (msg): void

Parameters
Name Type
msg Message
Returns

void

Defined in

webR/chan/channel.ts:111


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

Methods

handleInterrupt

handleInterrupt(): void

Returns

void

Defined in

webR/chan/channel.ts:106


read

read(): Message

Returns

Message

Defined in

webR/chan/channel.ts:105


resolve

resolve(): void

Returns

void

Defined in

webR/chan/channel.ts:102


run

run(args): void

Parameters

Name Type
args string[]

Returns

void

Defined in

webR/chan/channel.ts:108


setInterrupt

setInterrupt(interrupt): void

Parameters

Name Type
interrupt () => void

Returns

void

Defined in

webR/chan/channel.ts:107


write

write(msg, transfer?): void

Parameters

Name Type
msg Message
transfer? [Transferable]

Returns

void

Defined in

webR/chan/channel.ts:103


writeSystem

writeSystem(msg, transfer?): void

Parameters

Name Type
msg Message
transfer? [Transferable]

Returns

void

Defined in

webR/chan/channel.ts:104