celluloid / floss

UNMAINTAINED: See celluloid/celluloid#779 - A Ruby implementation of the Raft consensus algorithm.
MIT License
77 stars 14 forks source link

Implement Node#wait_until_ready: Sleep until the node completed its start-up. #1

Closed aflatter closed 11 years ago

aflatter commented 11 years ago

See https://github.com/aflatter/raft/commit/6fd9f82c27d56b5071fa53f65a1fc1971f5bc475#L0R60. Probably a good place to use Celluloid::IO::Stream::Latch again.

aflatter commented 11 years ago

Buggy, there seems to be a race somewhere in Raft::OneOffLatch.

aflatter commented 11 years ago

This is implemented and used on master.