Benign rust Download

napi-ffrt-ext 0.1.0

“FFRT napi extension for ohos-rs”

Package first published within seven daysPackage under two months old
SHA-2563e590ac54a3671947464699953d825f1d1bef8026ab480373c1caa4c4686f519
MaleculeH(Db)Md

Evidence

imports crate::spawn_local lines 1–13
1use ffrt::TaskAttr;
2use futures::Future;
3use napi_ohos::{
4 bindgen_prelude::{PromiseRaw, ToNapiValue},
5 Env, Result,
6};
7
8use crate::spawn_local;
9
10pub trait SpawnLocalExt {
11 fn spawn_local<
12 T: 'static + Send + ToNapiValue,
13 …
English function-word token "for" lines 51–56
51:29… env, T>>;
52}
53
54impl SpawnLocalExt for Env {
55 fn spawn_local<
56 T: 'static + Send + ToNapiVal …
Rust calls mem::transmute lines 81–87
81:19… v = Env::from_raw(env);
82 let static_env = core::mem::transmute::<&Env, &'env Env>(&env);
83 let val = callback(static_env, val)?;
84 ToNapiValue::to_napi_value(env.raw(), val)
85 })?;
86
87 …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.