forked from goodboy/tractor
1
0
Fork 0
tractor/tests
Tyler Goodlet a668f714d5 Allow passing function refs to `Portal.run()`
This resolves and completes #69 allowing all RPC invocation APIs to pass
function references directly instead of explicit `str` names for the
target namespace and function (this is still done implicitly
underneath).  This brings us closer to `trio`'s task running API as well
as acknowledges that any inter-host RPC system (and API) will likely
need to be implemented on top of local RPC primitives anyway. Even if
this ends up **not** being true we can always go to "function stubs" as
part of our IAC protocol or, add a new method to do explicit namespace
calls: `.run_from_module()` or whatever everyone votes on.

Resolves #69

Further, this commit drops `Actor.statespace` from the entire system
since a user can easily get this same functionality using module
level variables. Fix docs to match all these changes (luckily mostly
already done due to example scripts referencing).
2020-12-21 09:09:55 -05:00
..
conftest.py Factor `repodir()` helper into conftest.py 2020-10-13 14:49:31 -04:00
test_cancellation.py Allow passing function refs to `Portal.run()` 2020-12-21 09:09:55 -05:00
test_debugger.py Allow passing function refs to `Portal.run()` 2020-12-21 09:09:55 -05:00
test_discovery.py Allow passing function refs to `Portal.run()` 2020-12-21 09:09:55 -05:00
test_docs_examples.py Factor `repodir()` helper into conftest.py 2020-10-13 14:49:31 -04:00
test_local.py Revert "Change to relative conftest.py imports" 2020-10-13 14:42:02 -04:00
test_multi_program.py Revert "Change to relative conftest.py imports" 2020-10-13 14:42:02 -04:00
test_pubsub.py Allow passing function refs to `Portal.run()` 2020-12-21 09:09:55 -05:00
test_rpc.py Allow passing function refs to `Portal.run()` 2020-12-21 09:09:55 -05:00
test_spawning.py Allow passing function refs to `Portal.run()` 2020-12-21 09:09:55 -05:00
test_streaming.py Allow passing function refs to `Portal.run()` 2020-12-21 09:09:55 -05:00