(self, callback, method)
| 834 | return handle |
| 835 | |
| 836 | def _check_callback(self, callback, method): |
| 837 | if (coroutines.iscoroutine(callback) or |
| 838 | coroutines._iscoroutinefunction(callback)): |
| 839 | raise TypeError( |
| 840 | f"coroutines cannot be used with {method}()") |
| 841 | if not callable(callback): |
| 842 | raise TypeError( |
| 843 | f'a callable object was expected by {method}(), ' |
| 844 | f'got {callback!r}') |
| 845 | |
| 846 | def _call_soon(self, callback, args, context): |
| 847 | handle = events.Handle(callback, args, self, context) |
no test coverage detected