Skip to content

Commit 5ce0ce5

Browse files
author
Andrew J Westlake
committed
Clarified the reasoning behind the call to run_in_executor in the integration test
1 parent 746d7d4 commit 5ce0ce5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pytests/common/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ pub(super) async fn test_other_awaitables() -> PyResult<()> {
3535
let functools = py.import("functools")?;
3636
let time = py.import("time")?;
3737

38+
// spawn a blocking sleep in the threadpool executor - returns a task, not a coroutine
3839
let task = pyo3_asyncio::get_event_loop(py).call_method1(
3940
"run_in_executor",
4041
(

0 commit comments

Comments
 (0)