Extension types support via msgspec.Encoder/Decoder
hooks #19
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "ext_type_plds"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Primary new-feature summary
Namely, extension-types as
msgspec.Struct
fields such that you can now (more) easily define and configuredec/enc_hook()
funcs to be used by ourtractor.msg.MsgCodec/Dec
internals:c302b74008
Finally get type-extendedmsgspec
fields workinnPldRx
design we can,dec_hook()
to ourMsgDec
which is used to configure the underlying.dec: msgspec.msgpack.Decoder
enc_hook()
tomk_codec()
and use it to conf the equivMsgCodec.enc
such that sent msg-plds are converted prior to transport.29c3895
Namely movingenc/dec_type_union()
from the test mod to a newtractor.msg._exts
for use everywhere.08e15f441
Raise RTE fromlimit_plds()
on nocurr_ctx
Various (and some very serious) fixes to the
tractor.msg
related underbelly,e57ac63f56
Avoid attr-err whenMsgTypeError._ipc_msg==None
on sender side.fde6d84
Fix msg-draining onparent_never_opened_stream
!b0ab77a
SlightPldRx
rework to simplify, like01b5955
AddContext._outcome_msg
use newPldRx
API51f7280
AddMsgStream._stop_msg
use newPldRx
API4d9f6e73
Supportctx: UnionType
annots for@tractor.context
epsef7a585
Deliver aMaybeBoxedError
from.expect_ctxc()
Testing related fixes & improvements,
b6e49029
reworked test suitetest_ext_types_msgspec.py
,test_ext_types_over_ipc
which avoids all the wacky “parent dictates what sender should be able to send beforehand”, instead37b8d77
Extend ctx semantics suite for streaming edge cases!b85f301c05
to8d12ece8d6
8d12ece8d6
to6b8bd950fb
6b8bd950fb
toeb12029372
Fyi prior to this landing the
main
branch should have the following failures (see screenshot) since obvi this patchset reworks that suite entirely.Lol woops meant for this to be switched to
main
..Just did the
git merge --no-ff
manually and added the same commit msg thatgitea
would’veBp