pub fn new_callback<E>(browser: &Browser) -> (Callback<E>, JsValue)
Expand description
Create a new Callback and a corresponding JavaScript function.
The returned Callback object is a stream. Every time the returned function is called, the stream will yield the call argument as value.