tractor/tractor
Tyler Goodlet b6cc1e8c22 More pub decorator improvements
- when calling the async gen func provided by the user wrap it in
  `@async_generator.aclosing` to ensure correct teardown at cancel time
- expect the gen to yield a dict with topic keys and data values
- add a `packetizer` function argument to the api allowing a user
  to format the data to be published in whatever way desired
- support using the decorator without the parentheses (using default
  arguments)
- use a `wrapt` "adapter" to override the signature presented to the
  `_actor._invoke` inspection machinery
- handle the default case where `tasks` isn't provided; allow only one
  concurrent publisher task
- store task locks in an actor local variable
- add a comprehensive doc string
2019-01-21 09:21:12 -05:00
..
testing Support `loglevel` fixture injection 2018-11-30 01:11:08 -05:00
__init__.py Add a pub-sub messaging decorator API 2019-01-16 12:19:01 -05:00
_actor.py Add `Actor.cancel_task()` 2019-01-21 00:38:07 -05:00
_exceptions.py Change parent type 2019-01-12 17:55:28 -05:00
_forkserver_hackzorz.py Woot! mypy run is clean! 2018-08-31 17:16:24 -04:00
_ipc.py Make the `Context` a dataclass 2019-01-20 21:47:08 -05:00
_portal.py Cancel remote streaming tasks on a local cancel 2019-01-21 00:45:54 -05:00
_state.py Woot! mypy run is clean! 2018-08-31 17:16:24 -04:00
_trionics.py Properly respect `rpc_module_paths` in `run_in_actor()` 2019-01-12 17:55:08 -05:00
log.py Oh, mypy... 2018-11-09 01:52:57 -05:00
msg.py More pub decorator improvements 2019-01-21 09:21:12 -05:00