Gets execution mode for current thread.
(self)
| 751 | # TODO(fishx): remove this property. |
| 752 | @property |
| 753 | def execution_mode(self): |
| 754 | """Gets execution mode for current thread.""" |
| 755 | return ASYNC if self.is_async() else SYNC |
| 756 | |
| 757 | @execution_mode.setter |
| 758 | def execution_mode(self, mode): |