mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
8 lines
137 B
Rust
8 lines
137 B
Rust
use napi::bindgen_prelude::*;
|
|
|
|
#[napi]
|
|
pub async fn async_plus_100(p: Promise<u32>) -> Result<u32> {
|
|
let v = p.await?;
|
|
Ok(v + 100)
|
|
}
|