await(new TimeoutCancellation(0.5)); } catch (CancelledException) { echo 'Await operation has been cancelled.' . PHP_EOL; } // We can still await again at a later point in time $future->await();