HomePhabricator

rust-chg: reimplement locator by using async/await and tokio-0.2

Authored by yuja.

Description

rust-chg: reimplement locator by using async/await and tokio-0.2

connect_spawned() is rewritten from scratch by using std::process. Before,
it would select completion of either connection or server process. New code
could be implemented as such, but it's much simpler to occasionally run
try_wait() to detect server death.

Differential Revision: https://phab.mercurial-scm.org/D8447

Details