1
0
Fork 0
tractor/tractor
Tyler Goodlet f05534e472 Re-org root actor startup into context manager
This begins the move to dropping support for `tractor.run()` which we
don't really need since the runtime is started (as it always has been)
from a new sub-task / nursery. Instead this introduces starting the
actor tree through a `open_root_actor()` async context manager which
we'll likely implicitly call (from the root) on the first use of an
actor nursery.

Drop `_actor._start_actor()` and factor its contents into this new api.
Make `run()` and `run_daemon()` use `open_root_actor()` until we decide
to remove them.

Relates to #168 and #177
2020-12-27 13:29:30 -05:00
..
testing Make rpc_module_paths a list 2020-08-13 11:53:45 -04:00
__init__.py Re-org root actor startup into context manager 2020-12-27 13:29:30 -05:00
_actor.py Re-org root actor startup into context manager 2020-12-27 13:29:30 -05:00
_child.py Docstring to the top\!, and redundant spaces goodbye\! 2020-07-29 15:39:38 -03:00
_debug.py Add a "runtime" log level 2020-12-26 15:45:45 -05:00
_discovery.py Port inter-process method calls to `Portal.run_from_ns()` 2020-12-22 10:39:47 -05:00
_entry.py Re-org root actor startup into context manager 2020-12-27 13:29:30 -05:00
_exceptions.py Add type annots to exceptions mod 2020-12-25 15:07:36 -05:00
_forkserver_override.py Drop remaining warn()s 2020-10-14 13:48:14 -04:00
_ipc.py Denoise some common teardown "errors" to warnings. 2020-12-25 15:10:20 -05:00
_mp_fixup_main.py Do __main__ fixups like ``mulitprocessing does`` 2020-01-29 21:14:48 -05:00
_portal.py Add `Portal.run_from_ns()` 2020-12-22 10:39:47 -05:00
_root.py Re-org root actor startup into context manager 2020-12-27 13:29:30 -05:00
_spawn.py Drop all .statespace refs; it was a silly idea 2020-12-22 19:33:16 -05:00
_state.py Fix collections type import for py3.10 2020-12-18 17:58:07 -05:00
_streaming.py Validate stream functions at decorate time 2019-03-29 19:10:32 -04:00
_trionics.py Denoise some common teardown "errors" to warnings. 2020-12-25 15:10:20 -05:00
log.py Add a "runtime" log level 2020-12-26 15:45:45 -05:00
msg.py Drop all .statespace refs; it was a silly idea 2020-12-22 19:33:16 -05:00