rewrite wasi-tokio as just an task::block_in_place wrapper on cap-std-sync
This commit is contained in:
@@ -5,7 +5,7 @@ use std::cell::{Ref, RefMut};
|
||||
use std::ops::{Deref, DerefMut};
|
||||
|
||||
#[wiggle::async_trait]
|
||||
pub trait WasiFile {
|
||||
pub trait WasiFile: Send {
|
||||
fn as_any(&self) -> &dyn Any;
|
||||
async fn datasync(&self) -> Result<(), Error>; // write op
|
||||
async fn sync(&self) -> Result<(), Error>; // file op
|
||||
|
||||
Reference in New Issue
Block a user