pub fn request_blocking<F: FnOnce() -> String + Send + 'static>(
request: &Request,
id: String,
on_request: F,
)
Expand description
Handling an incoming request from javascript in a blocking manner in a threadpool thread.
The calling function does not block, the callback function runs in a threadpool thread and can be blocking.
If an exception occurs, the error text is written to the error console