1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//! Facilities for running background tasks in the libuv thread pool. use raw::Local; use std::os::raw::c_void; extern "C" { /// Schedules a background task. #[link_name = "Neon_Task_Schedule"] pub fn schedule(task: *mut c_void, perform: unsafe extern fn(*mut c_void) -> *mut c_void, complete: unsafe extern fn(*mut c_void, *mut c_void, &mut Local), callback: Local); }