Wraps a method so execution runs via an affinity engine.
(func)
| 68 | |
| 69 | @staticmethod |
| 70 | def __wrap(func): |
| 71 | "Wraps a method so execution runs via an affinity engine." |
| 72 | @functools.wraps(func) |
| 73 | def box(self, *args, **kwargs): |
| 74 | return self.__exec(func, self, *args, **kwargs) |
| 75 | return box |
| 76 | |
| 77 | @classmethod |
| 78 | def __new(meta, cls, *args, **kwargs): |