From 6f79ad721a9f8c9d66d79f21ea479286f3ca5374 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 8 Jan 2019 14:44:06 -0500 Subject: 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. --- src/msg.fbs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/msg.fbs') 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; -- cgit v1.2.3