worker_plus_sys/context.rs
1use wasm_bindgen::prelude::*;
2
3#[wasm_bindgen]
4extern "C" {
5 #[wasm_bindgen(extends=::js_sys::Object, js_name=Context)]
6 #[derive(Debug, PartialEq, Eq, Clone)]
7 pub type Context;
8
9 #[wasm_bindgen(method, structural, js_name=waitUntil)]
10 pub fn wait_until(this: &Context, promise: &::js_sys::Promise);
11
12 #[wasm_bindgen(method, structural, js_name=passThroughOnException)]
13 pub fn pass_through_on_exception(this: &Context);
14}