fn schedule(self, callback: Handle<JsFunction>) {
        let boxed_self = Box::new(self);
        let self_raw = Box::into_raw(boxed_self);
        let callback_raw = callback.to_raw();
        unsafe {
            neon_runtime::task::schedule(
                self_raw.cast(),
                perform_task::<Self>,
                complete_task::<Self>,
                callback_raw,
            );
        }
    }
/// Schedule a task to be executed on a background thread.
///
/// `callback` should have the following signature:
///
/// ```js
/// function callback(err, value) {}
/// ```
Schedule a task to be executed on a background thread.
`callback` should have the following signature.


Schedule a task to be executed on a background thread . ` callback ` should have the following signature .
fn schedule(self, callback: Handle<JsFunction>) {
        let boxed_self = Box::new(self);
        let self_raw = Box::into_raw(boxed_self);
        let callback_raw = callback.to_raw();
        unsafe {
            neon_runtime::task::schedule(
                self_raw.cast(),
                perform_task::<Self>,
                complete_task::<Self>,
                callback_raw,
            );
        }
    }
fn schedule ( self , callback : Handle < JsFunction > ) { let boxed_self = Box :: new ( self ) ; let self_raw = Box :: into_raw ( boxed_self ) ; let callback_raw = callback . to_raw ( ) ; unsafe { neon_runtime :: task :: schedule ( self_raw . cast ( ) , perform_task :: < Self > , complete_task :: < Self > , callback_raw , ) ; } }
Schedule a task to be executed on a background thread.
Schedule a task to be executed on a background thread .
self
callback
Handle<JsFunction>