sapling/eden/scm/lib/async-runtime
Jun Wu ea60810732 async-runtime: support multi-thread block_on_future
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
2020-09-30 20:31:34 -07:00
..
src async-runtime: support multi-thread block_on_future 2020-09-30 20:31:34 -07:00
Cargo.toml async-runtime: crate for async job scheduling from blocking threads 2020-08-26 00:57:32 -07:00