diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2019-01-08 14:44:06 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-08 14:44:06 -0500 |
| commit | 6f79ad721a9f8c9d66d79f21ea479286f3ca5374 (patch) | |
| tree | 3f8bad38a5bc109586d86846cb299717b425cdba /src/msg.fbs | |
| parent | 9ff6bca86388dab2cfa26e1712822f105985425e (diff) | |
Minimal Worker support (#1476)
This adds the ability to spawn additional Isolates from Rust and send
and receive messages from them. This is preliminary work to support
running the typescript compiler in a separate isolate and thus support
native ES modules. Ref #975.
Diffstat (limited to 'src/msg.fbs')
| -rw-r--r-- | src/msg.fbs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/msg.fbs b/src/msg.fbs index 989fafd0b..a9afb195f 100644 --- a/src/msg.fbs +++ b/src/msg.fbs @@ -1,6 +1,9 @@ union Any { Start, StartRes, + WorkerGetMessage, + WorkerGetMessageRes, + WorkerPostMessage, CodeFetch, CodeFetchRes, CodeCache, @@ -149,6 +152,18 @@ table StartRes { v8_version: string; } +table WorkerGetMessage { + unused: int8; +} + +table WorkerGetMessageRes { + data: [ubyte]; +} + +table WorkerPostMessage { + // data passed thru the zero-copy data parameter. +} + table CodeFetch { specifier: string; referrer: string; |
