refactor: remove sys:napi_async_init() in AsyncWork
This commit is contained in:
parent
a67d44c892
commit
9f49fd9b4e
1 changed files with 0 additions and 5 deletions
|
@ -26,11 +26,6 @@ impl<T: Task> AsyncWork<T> {
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
check_status(status)?;
|
check_status(status)?;
|
||||||
let mut raw_context = ptr::null_mut();
|
|
||||||
unsafe {
|
|
||||||
let status = sys::napi_async_init(env, raw_resource, raw_name, &mut raw_context);
|
|
||||||
check_status(status)?;
|
|
||||||
};
|
|
||||||
let result = AsyncWork {
|
let result = AsyncWork {
|
||||||
inner_task: task,
|
inner_task: task,
|
||||||
deferred,
|
deferred,
|
||||||
|
|
Loading…
Reference in a new issue