XiangpengHao opened a new issue, #5525:
URL: https://github.com/apache/opendal/issues/5525
### Describe the bug
Doesn't compile on my machine with wasm32-unknown-unknown
### Steps to Reproduce
```
cd integrations/object_store
cargo build --release --target wasm32-unknown-unknown
```
Will see:
```
error[E0277]: `dyn futures::Future<Output = ()>` cannot be sent between
threads safely
--> /opendal/core/src/types/execute/executors/tokio_executor.rs:28:42
|
28 | let _handle = tokio::task::spawn(f);
| ------------------ ^ `dyn
futures::Future<Output = ()>` cannot be sent between threads safely
| |
| required by a bound introduced by this call
|
= help: the trait `std::marker::Send` is not implemented for `dyn
futures::Future<Output = ()>`, which is required by `Pin<Box<dyn
futures::Future<Output = ()>>>: std::marker::Send`
= note: required for `Unique<dyn futures::Future<Output = ()>>` to
implement `std::marker::Send`
note: required because it appears within the type `Box<dyn
futures::Future<Output = ()>>`
```
### Expected Behavior
Should compile.
I saw some special handling on wasm + Send bound, but I have not fully
understand why we need them yet.
### Additional Context
_No response_
### Are you willing to submit a PR to fix this bug?
- [ ] Yes, I would like to submit a PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]