(&self, f: impl FnOnce() -> R)
| 680 | /// Equivalent to CPython's `Py_BEGIN_ALLOW_THREADS` / `Py_END_ALLOW_THREADS`. |
| 681 | #[inline] |
| 682 | pub fn allow_threads<R>(&self, f: impl FnOnce() -> R) -> R { |
| 683 | thread::allow_threads(self, f) |
| 684 | } |
| 685 | |
| 686 | /// Check whether the current thread is the main thread. |
| 687 | /// Mirrors `_Py_ThreadCanHandleSignals`. |
no test coverage detected