Daniel Parks

Results 15 issues of Daniel Parks

Seemed easier to submit a PR than file an issue.

Add a new, public `Sources::poll()` method that takes a value of the newly created `Timeout` enum with `Timeout::After(Duration)` and `Timeout::Never` variants. Fix #4 --- I’ve tried to match your style...

Not all sources of streams (e.g. `std::process`) provide an easy way to set the stream into non-blocking mode. This fills the gap. This resolves #5. --- I realized the code...

I suspect a lot of applications that need to poll will also need non-blocking streams. Otherwise, you can end up reading all of one stream before you get any output...

Having separate `wait()` and `wait_timeout()` functions is (mildly) inconvenient in code where the timeout is optional. It would be nice to have a unified function that takes `Option`, for example:...

This works great if I keep “Unlocking your Mac” checked in the Touch ID system preferences. However, it fails if I uncheck that box (and leave the other boxes checked)....

Hiera eyaml 2.1.0 ensures there is a trailing newline when run from the command line. ~~~ ❯ echo -n nonl >no_newline ❯ od -c no_newline 0000000 n o n l...

Detecting if a token has a regex certname matcher is handled at [lib/autosign/token.rb line 80](https://github.com/danieldreier/autosign/blob/master/lib/autosign/token.rb#L80): ``` ruby certname_is_regex = (data["certname"] =~ /\/[^\/].*\//) ? true : false . . . regexp...

Running `test_waker_threaded` in Rust 1.70 on macOS almost always either fails or hangs indefinitely. ``` ---- tests::test_waker_threaded stdout ---- thread 'tests::test_waker_threaded' panicked at 'called `Result::unwrap_err()` on an `Ok` value: ()',...

Previously, `test_threaded()` started a thread that made two writes to each pipe. This had the potential for a race condition since the read might occur between the two writes. This...