Xuanwo commented on PR #6622:
URL: https://github.com/apache/opendal/pull/6622#issuecomment-3402972223
> @Xuanwo your comment is in ref to point 1 in my message earlier. the
snippet your shared is a simpler version of `future_into_py_async` that i
attached above, please take a look.
Hi, I don't think they are the same thing.
I thought we can do:
```rust
use std::{thread, time::Duration};
use futures::channel::oneshot;
use pyo3::prelude::*;
#[pyfunction]
#[pyo3(signature=(seconds, result=None))]
async fn sleep(seconds: f64, result: Option<Py<PyAny>>) -> Option<Py<PyAny>>
{
tokio::sleep(10s).await;
result
}
```
Can we?
--
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]