Register the thread so that PyWebIO interactive functions are available in the thread. Can only be used in the thread-based session. See :ref:`Concurrent in Server mode ` :param threading.Thread thread: Thread object
(thread: threading.Thread)
| 446 | |
| 447 | @check_session_impl(ThreadBasedSession) |
| 448 | def register_thread(thread: threading.Thread): |
| 449 | """Register the thread so that PyWebIO interactive functions are available in the thread. |
| 450 | |
| 451 | Can only be used in the thread-based session. |
| 452 | |
| 453 | See :ref:`Concurrent in Server mode <thread_in_server_mode>` |
| 454 | |
| 455 | :param threading.Thread thread: Thread object |
| 456 | """ |
| 457 | return get_current_session().register_thread(thread) |
| 458 | |
| 459 | |
| 460 | def defer_call(func): |
no test coverage detected
searching dependent graphs…