Permalink
Browse files

Add Workers module (Web Workers)

And add a function to get them on Page.

Fixes #59.
  • Loading branch information...
zploskey committed Jun 13, 2018
1 parent 8ea1d39 commit 4160b9b4a914e912e7c15fa4cf4f1341ccfd4808
Showing with 18 additions and 1 deletion.
  1. +7 −0 lib/js/src/Worker.js
  2. +1 −1 src/Page.re
  3. +10 −0 src/Worker.re

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -316,4 +316,4 @@ external waitForNavigation :
(~options: Navigation.options) => Js.Promise.t(Response.t) =
"";

/* TODO: workers() */
[@bs.send] external workers : t => array(Worker.t) = "";
@@ -0,0 +1,10 @@
type t;

include Evaluator.Impl({
type nonrec t = t;
});

[@bs.send]
external executionContext : t => Js.Promise.t(ExecutionContext.t) = "";

[@bs.send] external url : t => string = "";

0 comments on commit 4160b9b

Please sign in to comment.