Get remaining language2 tests passing

This commit is contained in:
Max Brunsfeld 2023-10-26 16:38:42 +02:00
parent 0eae962abf
commit 65045b9c52
4 changed files with 1475 additions and 1471 deletions

View file

@ -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 {