2 // Copyright 2004-present Facebook. All Rights Reserved.
5 public function syncCheck(): bool {
8 public async
function genAsyncCheck(): Awaitable
<bool> {
11 public async
function test(bool $fast_path): Awaitable
<int> {
14 $is_valid = $this->syncCheck();
16 // This is an Awaitable<bool> (author forgot to await)
17 $is_valid = $this->genAsyncCheck();
20 // This is a truthy check on (bool | Awaitable<bool>) which is sketchy