Changeset 3623
- Timestamp:
- 16/10/08 21:06:49 (3 months ago)
- Files:
-
- 1 modified
-
trunk/base/src/notifier/thread.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/notifier/thread.py
r3585 r3623 363 363 if type(result) == types.GeneratorType or isinstance(result, InProgress): 364 364 # Looks like the callback is yielding something, or callback is a 365 # coroutine-decorated function. Not supported (yet?). 366 log.warning('NYI: threads cannot yet be coroutines.') 365 # coroutine-decorated function. Not supported (yet?). In the 366 # case of coroutines, the first entry will execute in the 367 # thread, but subsequent entries (via the generator's next()) 368 # will be from the mainthread, which is almost certainly _not_ 369 # what is intended by threading a coroutine. 370 log.warning('NYI: coroutines cannot (yet) be executed in threads.') 367 371 MainThreadCallback(self.finish)(result) 368 372 self._callback = None
