Skip to content

Commit

Permalink
Minor cfg review in callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro committed Jan 8, 2025
1 parent 4a8cf4a commit 247a68d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/callbacks.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use pyo3::{exceptions::PyStopIteration, prelude::*, types::PyDict, IntoPyObjectExt};
use std::sync::{atomic, Arc, Mutex, OnceLock, RwLock};
#[cfg(any(Py_3_12, Py_3_13))]
use std::sync::Mutex;
use std::sync::{atomic, Arc, OnceLock, RwLock};
use tokio::sync::Notify;

pub(crate) type ArcCBScheduler = Arc<Py<CallbackScheduler>>;
Expand Down Expand Up @@ -136,7 +138,7 @@ impl CallbackScheduler {
}

#[inline]
pub(crate) fn send(pyself: Py<Self>, py: Python, coro: PyObject) {
pub(crate) fn send(pyself: Py<Self>, py: Python, coro: PyObject, ctx: PyObject) {
let rself = pyself.get();
let ptr = (pyself.clone_ref(py),).into_pyobject(py).unwrap().into_ptr();

Expand Down

0 comments on commit 247a68d

Please sign in to comment.