Commit Graph
61 Commits
Author SHA1 Message Date
Alex Crichton 21e178854b Fix compile on Android
Closes #19
2018-01-31 07:05:26 -08:00
Alex Crichton 104f26cd06 Bump to 0.1.3 0.1.3 2018-01-03 08:43:48 -08:00
Alex Crichton dba5c5014a Update to winapi 0.3 2018-01-03 08:41:41 -08:00
Alex Crichton adabd80408 Tweak travis config 2017-11-30 05:36:54 -08:00
Alex Crichton 1b3436972e Clarify wording of license information in README.
This text historically was copied verbatim from rust-lang/rust's own README [1]
with the intention of licensing projects the same as rustc's own license, namely
a dual MIT/Apache-2.0 license. The clause about "various BSD-like licenses"
isn't actually correct for almost all projects other than rust-lang/rust and
the wording around "both" was slightly ambiguous.

This commit updates the wording to match more precisely what's in the
standard library [2], namely clarifying that there aren't any BSD-like licenses
in this repository and that the source is licensable under either license, at
your own discretion.

[1]: https://github.com/rust-lang/rust/tree/f0fe716dbcbf2363ab8f929325d32a17e51039d0#license
[2]: https://github.com/rust-lang/rust/blob/f0fe716dbcbf2363ab8f929325d32a17e51039d0/src/libstd/lib.rs#L5-L9
2017-10-30 14:16:11 -07:00
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 1a2976f6ee Merge pull request #15 from rnestler/fix_readme
Fix typo in README
2017-06-19 09:01:42 -05:00
Raphael Nestler 4223406a3e Fix typo in README 2017-06-19 14:38:02 +02: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
Alex Crichton 2e4b203033 Merge pull request #13 from juleskers/sighup-example
additional example: SIGHUP
2017-06-07 16:50:29 -05: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
Alex Crichton 49da6bdc26 Add some examples to crate docs
Closes #11
2017-06-07 12:29:31 -07: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 601a3228de Update to tokio-io 2017-03-15 10:36:37 -07:00
Alex Crichton a90aac53cc Merge pull request #8 from vorner/infinite-token
Use IDs that don't run out
2017-01-26 15:36:03 -08:00
Alex Crichton 3217ed7846 Merge pull request #9 from vorner/multi-test
A test running multiple event loops
2017-01-26 14:08:42 -08:00
Alex Crichton fdcad8fe99 Merge pull request #7 from vorner/whitespace
Style: Replace tabs with spaces
2017-01-26 14:07:47 -08:00
Michal 'vorner' Vaner a9257477e0 Style: Replace tabs with spaces
Mixing tabs and spaces breaks indentation for people (and github) if
they use different tab width.
2017-01-26 21:26:58 +01:00
Michal 'vorner' Vaner 390b8d3cc5 Use IDs that don't run out
Replace the sequential counting (which might be exhausted) by an address
of an object (in a box, so it doesn't change). This is also a unique, so
it is acceptable ID.
2017-01-26 21:22:19 +01:00
Michal 'vorner' Vaner 053ba7be1a A test running multiple event loops
Run multiple loops (both in parallel and sequentially) to make sure
broadcasting to multiple of them works and we work even after the
initial loop has gone away.
2017-01-26 20:45:19 +01:00
Alex Crichton 86d88fc8da Add badges/categories 2017-01-24 11:04:45 -08:00
Alex Crichton 571a48255e Bump to 0.1.2 0.1.2 2017-01-24 11:02:36 -08:00
Alex Crichton ba19515833 Clarify a comment 2017-01-24 10:59:31 -08:00
Alex Crichton a21153a0e9 Clear out old Signal on drop 2017-01-24 10:54:55 -08:00
Alex Crichton 83a5277af1 Touch up more impls and comments 2017-01-24 10:47:09 -08:00
Alex Crichton b748fa955c Handle a few more errors 2017-01-24 10:06:54 -08:00
Alex Crichton 277fff43f5 Various cleanups:
* Drop nix/lazy_static
* Use previously registered handlers
* Handle some more errors
2017-01-24 10:02:42 -08:00
Michal 'vorner' Vaner a02a38fbae The driver task
Add the driver task, connecting the signal handler wakeups to the
wakeups of of the streams.

It is a prototype-quality code, a lot of cleanups and similar is needed.
2017-01-22 14:48:22 +01:00
Michal 'vorner' Vaner f7167b48a7 Provide the new kind of Signal stream
Which is just a wrapper around the futures::sync::mpsc. The sender is in
a global registry.

The part that connects the wakeups to the senders in the registry
doesn't yet exist.
2017-01-22 12:58:48 +01:00
Michal 'vorner' Vaner 8abc26df39 Implement the wake-up part of the new signal handling
Register the signal handler that wakes up someone through a self-pipe.
That someone doesn't yet exist, though.

Some dependencies (nix, lazy_static) added to speed up the prototyping
process. They are likely to be dropped in some future commits.

Some features (eg. preserving the previous signal handlers) are still
missing.
2017-01-22 12:27:03 +01:00
Michal 'vorner' Vaner b9da819153 Use tokio-core from git
Just for now, as we need some yet unreleased features.
2017-01-22 10:19:38 +01:00
Alex Crichton 10151bfca0 Update docs urls and such 2017-01-12 10:32:16 -08:00
Alex Crichton a3c07eb771 Remove deprecated API usage on Windows 2017-01-12 10:29:22 -08:00
Alex Crichton 18776138ad Remove use of deprecated APIs on Unix 2017-01-12 10:25:51 -08:00
Alex Crichton cf9398ef61 Bump to 0.1.1 0.1.1 2017-01-11 18:56:15 -08:00
Alex Crichton b726610e7f Ignore errors in signal handler
Closes #3
2017-01-11 10:21:01 -08:00
Alex Crichton 338567ca80 Update travis token 2016-11-19 09:15:38 -08:00
Alex Crichton 3181ebfda6 Merge pull request #2 from jugglerchris/patch-1
Trivial typo fix.
2016-11-07 14:25:06 -08:00
Chris Emerson 424be889a4 Trivial typo fix. 2016-11-07 22:04:08 +00:00
Alex Crichton 72283f178a Remove SIGKILL reexport 2016-10-05 13:55:45 -07:00