Mercurial > hg
comparison rust/chg/src/lib.rs @ 44753:a347a329e48d
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
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 11 Apr 2020 00:47:32 +0900 |
parents | d6f706929120 |
children |
comparison
equal
deleted
inserted
replaced
44752:d6f706929120 | 44753:a347a329e48d |
---|---|
3 // This software may be used and distributed according to the terms of the | 3 // This software may be used and distributed according to the terms of the |
4 // GNU General Public License version 2 or any later version. | 4 // GNU General Public License version 2 or any later version. |
5 | 5 |
6 mod attachio; | 6 mod attachio; |
7 mod clientext; | 7 mod clientext; |
8 //pub mod locator; | 8 pub mod locator; |
9 pub mod message; | 9 pub mod message; |
10 pub mod procutil; | 10 pub mod procutil; |
11 mod runcommand; | 11 mod runcommand; |
12 mod uihandler; | 12 mod uihandler; |
13 | 13 |