From bc51a9bd43412a0b84623c9cf75762df11a50094 Mon Sep 17 00:00:00 2001 From: Casey McGinty Date: Mon, 22 Aug 2022 13:32:57 -0700 Subject: [PATCH] Fix usage instructions Summary: I'm guessing the method name change but the comment was not updated. I assume this will eventually get promoted to the online docs as well: https://docs.hhvm.com/hsl/reference/class/HH.Lib.Async.Semaphore/ Reviewed By: kmeht Differential Revision: D38886618 fbshipit-source-id: b068208900c68b87a2bfbbf40848038a5eb3fd4f --- hphp/hsl/src/async/Semaphore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hphp/hsl/src/async/Semaphore.php b/hphp/hsl/src/async/Semaphore.php index d36f7bfa8aa..7180fd66d13 100644 --- a/hphp/hsl/src/async/Semaphore.php +++ b/hphp/hsl/src/async/Semaphore.php @@ -19,7 +19,7 @@ use namespace HH\Lib\C; * function for maximum flexibility, however this pattern is best avoided in favor * of creating semaphores with a more narrow process. * - * Use `genWaitFor()` to retrieve a `Tout` from a `Tin`. + * Use `waitForAsync()` to retrieve a `Tout` from a `Tin`. */ final class Semaphore { -- 2.11.4.GIT