fmlib_js
Library for easy compilation from ocaml to javascript
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library fmlib_js
val start :
'rcv Base.Decode.t ->
( 'rcv -> unit ) ->
'msg Base.Decode.t ->
'msg worker_function ->
t
start decode callback dec wfun
Create and start a simulator of the webworker whose behaviour is described by the pair (dec, wfun)
.
val post_message : Base.Value.t -> t -> unit
post_message msg w
Send the message msg
to the webworker simulator w
.
val terminate : t -> unit
terminate w
Terminate the webworker simulator w
.