(self, fn, *args, **kwargs)
| 573 | _max_workers = 1 |
| 574 | |
| 575 | def submit(self, fn, *args, **kwargs): |
| 576 | fut = Future() |
| 577 | try: |
| 578 | fut.set_result(fn(*args, **kwargs)) |
| 579 | except BaseException as e: |
| 580 | fut.set_exception(e) |
| 581 | return fut |
| 582 | |
| 583 | |
| 584 | synchronous_executor = SynchronousExecutor() |