Brr_webworkers.WorkerSourceWeb workers.
See the Web Workers API.
The type for worker options.
val opts :
?type':Type.t ->
?credentials:Brr_io.Fetch.Request.Credentials.t ->
?name:Jstr.t ->
unit ->
optsopts ~type' ~credentials ~name () are worker options with given parameters. See here for defaults and semantics.
as_target w is w as an event target.
terminate w terminates worker w.
post ~opts w v posts value v on port p with options opts (the target_origin option is meaningless in this case).
Shared workers.
These APIs are used by the workers.
ami () is true if we are executing in a worker context.