15 Commits
Author SHA1 Message Date
Alex Crichton 3fa92b4f0d Add an example for waiting on two signals
Relies on `Stream::select` to merge streams.

Closes #16
2017-06-29 22:56:15 -07:00
Alex Crichton 952217adb7 Merge pull request #12 from juleskers/ctrl_c_example
Upgrade Ctrl+C example into proper `cargo run`-able project
2017-06-08 15:29:57 -05:00
Jules Kerssemakers 79fb01afc7 Ctrl+C example: quit after 10 signals. 2017-06-08 21:33:08 +02:00
Jules Kerssemakers 01d8b7c28c Ctrl+C example: more explanations 2017-06-08 15:59:04 +02:00
Jules Kerssemakers c4e91718e6 Ctrl+C example: Defer stream initialisation (and explain how/why) 2017-06-08 15:57:06 +02:00
Alex Crichton baf3f23ed0 Touch up the sighup-example slightly 2017-06-07 14:53:04 -07:00
Jules Kerssemakers 0362db71d0 new example: SIGHUP, shows how to receive other signals than ctrl+C 2017-06-07 22:38:42 +02:00
Jules Kerssemakers 639cb29431 undo nested example cargo project
.. after learning about `cargo run --example`
2017-06-07 21:47:42 +02:00
Jules Kerssemakers 51a7b6536a Ctrl+C example: Don't forget proper attribution for original example 2017-06-07 21:30:25 +02:00
Jules Kerssemakers 95d22930dd Ctrl+C example: highlight power of Stream::for_each() 2017-06-07 21:23:10 +02:00
Jules Kerssemakers efef5a6e6a Ctrl+C example: clarify control flow after receiving Ctrl+C: unreachable!() 2017-06-07 21:20:51 +02:00
Jules Kerssemakers 7dc9818dca Ctrl+C example: add explanatory comments 2017-06-07 21:20:25 +02:00
Jules Kerssemakers a7efdd051b ctrl+C example: Prompt user to do something.
So we don't stay at a blank terminal without any feedback after `cargo run`
2017-06-07 21:18:26 +02:00
Jules Kerssemakers 0ee0b93798 Upgrade ctrl+c example into cargo run-able version with proper Cargo.toml 2017-06-07 21:15:40 +02:00
Alex Crichton 69ced1b6da Start adding windows support 2016-09-08 17:28:44 -07:00