We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81e4204 commit cfc3c40Copy full SHA for cfc3c40
src/utils.rs
@@ -52,8 +52,8 @@ pub(crate) fn get_global_ctx() -> &'static SessionContext {
52
/// Utility to collect rust futures with GIL released and interrupt support
53
pub fn wait_for_future<F>(py: Python, f: F) -> PyResult<F::Output>
54
where
55
- F: Future + Send,
56
- F::Output: Send,
+ F: Future + Send + 'static,
+ F::Output: Send + 'static,
57
{
58
let runtime: &Runtime = &get_tokio_runtime().0;
59
0 commit comments