mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
ea60810732
Summary: This would have been easier if we can upgrade tokio (D24011447). For now, let's just solve it by using a channel so the mutex is not held for long. The implementation has some side effects, though: - panic message is not preserved. - 'static lifetime is required on Future. The `'static` lifetime is incompatible with some existing code. The old function is preserved as `block_on_exclusive` and is used in places where a future does not have `'static` lifetime. Reviewed By: sfilipco Differential Revision: D24033134 fbshipit-source-id: 7b35d1ff636d2a289db9b04e60419c31bdea9453 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |