mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-08-13 17:05:54 -04:00
flutter tokio
This commit is contained in:
parent
e49f7a89c0
commit
8fbc985e9b
7 changed files with 89 additions and 29 deletions
|
@ -1,3 +1,4 @@
|
|||
use crate::tools::*;
|
||||
pub use allo_isolate::ffi::DartCObject;
|
||||
pub use allo_isolate::IntoDart;
|
||||
use allo_isolate::Isolate;
|
||||
|
@ -35,7 +36,7 @@ impl DartIsolateWrapper {
|
|||
T: IntoDart + Debug,
|
||||
E: Serialize + Debug,
|
||||
{
|
||||
async_std::task::spawn(async move {
|
||||
spawn(async move {
|
||||
self.result(future.await);
|
||||
});
|
||||
}
|
||||
|
@ -46,7 +47,7 @@ impl DartIsolateWrapper {
|
|||
T: Serialize + Debug,
|
||||
E: Serialize + Debug,
|
||||
{
|
||||
async_std::task::spawn(async move {
|
||||
spawn(async move {
|
||||
self.result_json(future.await);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue