(action: Callable)
| 101 | exceptions: List[Exception] = [] |
| 102 | |
| 103 | def action_wrapper(action: Callable) -> Callable: |
| 104 | def body() -> Any: |
| 105 | try: |
| 106 | results[action] = action() |
| 107 | except Exception as e: |
| 108 | results[action] = e |
| 109 | exceptions.append(e) |
| 110 | g_self.switch() |
| 111 | |
| 112 | return body |
| 113 | |
| 114 | async def task() -> None: |
| 115 | for action in actions: |