运行后处理。 装饰一个函数,使它在每次事件响应器运行后执行。
(func: T_RunPostProcessor)
| 123 | |
| 124 | |
| 125 | def run_postprocessor(func: T_RunPostProcessor) -> T_RunPostProcessor: |
| 126 | """运行后处理。 |
| 127 | |
| 128 | 装饰一个函数,使它在每次事件响应器运行后执行。 |
| 129 | """ |
| 130 | _run_postprocessors.add( |
| 131 | Dependent[Any].parse(call=func, allow_types=RUN_POSTPCS_PARAMS) |
| 132 | ) |
| 133 | return func |
| 134 | |
| 135 | |
| 136 | def _handle_ignored_exception( |