├── .github └── workflows │ ├── build-and-test.yml │ ├── formatting.yml │ ├── git-commit-message-style.yml │ └── linting.yml ├── .gitignore ├── CHANGELOG.md ├── Cargo.lock ├── Cargo.toml ├── LICENSE-APACHE ├── LICENSE-MIT ├── README.md ├── benches └── benches.rs ├── check_mem_leaks.sh ├── examples ├── recv_before_send.rs ├── recv_before_send_then_drop_sender.rs ├── recv_ref_before_send.rs ├── recv_ref_before_send_then_drop_sender.rs ├── recv_timeout_before_send.rs ├── recv_timeout_before_send_then_drop_sender.rs ├── recv_with_dropped_sender.rs ├── send_before_recv.rs ├── send_then_drop_receiver.rs └── send_with_dropped_receiver.rs ├── src ├── errors.rs ├── lib.rs └── loombox.rs └── tests ├── assert_mem.rs ├── async.rs ├── future.rs ├── helpers ├── mod.rs └── waker.rs ├── loom.rs ├── raw.rs └── sync.rs /.github/workflows/build-and-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/.github/workflows/build-and-test.yml -------------------------------------------------------------------------------- /.github/workflows/formatting.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/.github/workflows/formatting.yml -------------------------------------------------------------------------------- /.github/workflows/git-commit-message-style.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/.github/workflows/git-commit-message-style.yml -------------------------------------------------------------------------------- /.github/workflows/linting.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/.github/workflows/linting.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/LICENSE-APACHE -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/LICENSE-MIT -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/README.md -------------------------------------------------------------------------------- /benches/benches.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/benches/benches.rs -------------------------------------------------------------------------------- /check_mem_leaks.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/check_mem_leaks.sh -------------------------------------------------------------------------------- /examples/recv_before_send.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/examples/recv_before_send.rs -------------------------------------------------------------------------------- /examples/recv_before_send_then_drop_sender.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/examples/recv_before_send_then_drop_sender.rs -------------------------------------------------------------------------------- /examples/recv_ref_before_send.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/examples/recv_ref_before_send.rs -------------------------------------------------------------------------------- /examples/recv_ref_before_send_then_drop_sender.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/examples/recv_ref_before_send_then_drop_sender.rs -------------------------------------------------------------------------------- /examples/recv_timeout_before_send.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/examples/recv_timeout_before_send.rs -------------------------------------------------------------------------------- /examples/recv_timeout_before_send_then_drop_sender.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/examples/recv_timeout_before_send_then_drop_sender.rs -------------------------------------------------------------------------------- /examples/recv_with_dropped_sender.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/examples/recv_with_dropped_sender.rs -------------------------------------------------------------------------------- /examples/send_before_recv.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/examples/send_before_recv.rs -------------------------------------------------------------------------------- /examples/send_then_drop_receiver.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/examples/send_then_drop_receiver.rs -------------------------------------------------------------------------------- /examples/send_with_dropped_receiver.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/examples/send_with_dropped_receiver.rs -------------------------------------------------------------------------------- /src/errors.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/src/errors.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/loombox.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/src/loombox.rs -------------------------------------------------------------------------------- /tests/assert_mem.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/tests/assert_mem.rs -------------------------------------------------------------------------------- /tests/async.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/tests/async.rs -------------------------------------------------------------------------------- /tests/future.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/tests/future.rs -------------------------------------------------------------------------------- /tests/helpers/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/tests/helpers/mod.rs -------------------------------------------------------------------------------- /tests/helpers/waker.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/tests/helpers/waker.rs -------------------------------------------------------------------------------- /tests/loom.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/tests/loom.rs -------------------------------------------------------------------------------- /tests/raw.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/tests/raw.rs -------------------------------------------------------------------------------- /tests/sync.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faern/oneshot/HEAD/tests/sync.rs --------------------------------------------------------------------------------