forked from goodboy/tractor
Since I needed the `break_ipc()` helper from the `examples/advanced_faults/ipc_failure_during_stream.py` used in the `test_advanced_faults` suite, might as well move it into a pkg-wide importable module. Also changed the default break method to be `socket_close` which just calls `Stream.socket.close()` underneath in `trio`. Also tweak that example to not keep sending after the stream has been broken since with new `trio` that will raise `ClosedResourceError` and in the wrapping test we generally speaking want to see a hang and then cancel via simulated user sent SIGINT/ctl-c. |
||
|---|---|---|
| .. | ||
| advanced_faults | ||
| debugging | ||
| integration | ||
| parallelism | ||
| __init__.py | ||
| __main__.py | ||
| a_trynamic_first_scene.py | ||
| actor_spawning_and_causality.py | ||
| actor_spawning_and_causality_with_daemon.py | ||
| asynchronous_generators.py | ||
| full_fledged_streaming_service.py | ||
| infected_asyncio_echo_server.py | ||
| multiple_streams_one_portal.py | ||
| quick_cluster.py | ||
| remote_error_propagation.py | ||
| rpc_bidir_streaming.py | ||
| service_discovery.py | ||