tractor/tractor
Tyler Goodlet 7e93b81a83 Don't use pretty struct stuff in `._invoke`
It's too fragile to put in side core RPC machinery since
`msgspec.Struct` defs can fail if a field type can't be
looked up at creation time (like can easily happen if you
conditionally import using `if TYPE_CHECKING:`)

Also,
- rename `cs` to `rpc_ctx_cs: CancelScope` since it's literally
  the wrapping RPC `Context._scope`.
- report self cancellation via `explain: str` and add tail case for
  "unknown cause".
- put a ?TODO? around what to do about KBIs if a context is opened
  from an `infected_aio`-actor task.
- similar to our nursery and portal add TODO list for moving all
  `_invoke_non_context()` content out the RPC core and instead implement
  them as `.hilevel` endpoint helpers (maybe as decorators?)which under
  neath define `@context`-funcs.
2024-06-28 19:06:17 -04:00
..
_testing Start a new `._testing.fault_simulation` 2024-04-03 10:19:50 -04:00
devx Further formalize `greenback` integration 2024-06-28 14:45:45 -04:00
experimental Drop now-deprecated deps on modern `trio`/Python 2024-03-13 18:41:24 -04:00
msg Expand `PayloadMsg` doc-str 2024-06-18 09:57:10 -04:00
trionics Change `_Cache` reuse emit to `.runtime()` 2024-06-18 14:40:26 -04:00
__init__.py Expose `tractor.current_ipc_ctx()` at pkg level 2024-05-20 15:47:01 -04:00
_child.py Hide `._entry`/`._child` frames, tweak some more type annots 2024-04-14 17:49:18 -04:00
_clustering.py Passthrough runtime kwargs from `open_actor_cluster()` 2022-12-11 19:56:08 -05:00
_context.py Always reset `._state._ctxvar_Context` to prior 2024-06-28 12:59:31 -04:00
_discovery.py More spaceless union type annots 2024-03-11 10:33:06 -04:00
_entry.py Update `._entry` actor status log 2024-06-28 18:45:52 -04:00
_exceptions.py Lel, revert `AsyncioCancelled` inherit, module.. 2024-06-25 23:47:14 -04:00
_forkserver_override.py Re-license code base for distribution under AGPL 2021-12-14 23:33:27 -05:00
_ipc.py Break `_mk_msg_type_err()` into recv/send side funcs 2024-06-17 13:12:16 -04:00
_mp_fixup_main.py Avoid importing mp for as long as possible 2022-02-17 11:55:26 -05:00
_multiaddr.py Fix doc string "its" typo.. 2023-11-06 15:44:21 -05:00
_portal.py Prep for legacy RPC API factor-n-remove 2024-06-27 16:25:46 -04:00
_root.py Further formalize `greenback` integration 2024-06-28 14:45:45 -04:00
_rpc.py Don't use pretty struct stuff in `._invoke` 2024-06-28 19:06:17 -04:00
_runtime.py Further formalize `greenback` integration 2024-06-28 14:45:45 -04:00
_shm.py Drop now-deprecated deps on modern `trio`/Python 2024-03-13 18:41:24 -04:00
_spawn.py Prep for legacy RPC API factor-n-remove 2024-06-27 16:25:46 -04:00
_state.py Further formalize `greenback` integration 2024-06-28 14:45:45 -04:00
_streaming.py Move `Context.open_stream()` impl to `._streaming` 2024-05-31 17:32:11 -04:00
_supervise.py Prep for legacy RPC API factor-n-remove 2024-06-27 16:25:46 -04:00
log.py Bleh, make `log.devx()` level less then cancel but > `.runtime()` 2024-06-11 20:45:41 -04:00
to_asyncio.py Use `delay=0` in pump loop.. 2024-06-27 19:27:59 -04:00