worker-plus-sys 0.0.8

Low-level extern definitions / FFI bindings to the Cloudflare Workers JS Runtime.
Documentation
use wasm_bindgen::prelude::*;

#[wasm_bindgen]
extern "C" {
    #[wasm_bindgen(extends=::js_sys::Object, js_name=Context)]
    #[derive(Debug, PartialEq, Eq, Clone)]
    pub type Context;

    #[wasm_bindgen(method, structural, js_name=waitUntil)]
    pub fn wait_until(this: &Context, promise: &::js_sys::Promise);

    #[wasm_bindgen(method, structural, js_name=passThroughOnException)]
    pub fn pass_through_on_exception(this: &Context);
}