Start a `._rpc` module
Since `._runtime` was getting pretty long (> 2k LOC) and much of the RPC low-level machinery is fairly isolated to a handful of task-funcs, it makes sense to re-org the RPC task scheduling and driving msg loop to its own code space. The move includes: - `process_messages()` which is the main IPC business logic. - `try_ship_error_to_remote()` helper, to box local errors for the wire. - `_invoke()`, the core task scheduler entrypoing used in the msg loop. - `_invoke_non_context()`, holds impls for non-`@context` task starts. - `_errors_relayed_via_ipc()` which does all error catch-n-boxing for wire-msg shipment using `try_ship_error_to_remote()` internally. Also inside `._runtime` improve some `Actor` methods docs.modden_spawn_from_client_req
parent
58cc57a422
commit
d23d8c1779
File diff suppressed because it is too large
Load Diff
1184
tractor/_runtime.py
1184
tractor/_runtime.py
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue