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