Get remaining language2 tests passing
This commit is contained in:
parent
0eae962abf
commit
65045b9c52
4 changed files with 1475 additions and 1471 deletions
|
@ -163,6 +163,10 @@ impl Executor {
|
|||
future: impl Future<Output = R>,
|
||||
) -> Result<R, impl Future<Output = R>> {
|
||||
let mut future = Box::pin(future);
|
||||
if duration.is_zero() {
|
||||
return Err(future);
|
||||
}
|
||||
|
||||
let timeout = {
|
||||
let future = &mut future;
|
||||
async {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue