You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Async\Semaphore to limit the concurrency in hhvm/hhast#399, which works good. But the current design of Async\Semaphore does not support the use cases where the waitForAsync callers expect different types. I wonder if we could support the following type signature, so that we can use the same Semaphore limit the concurrency of heterogeneous job types.
This approach is better than the closure approach because it could keep the call stack clean. In the closure approach, when an exception is thrown from the closure, the call stack would be noisy and hard to debug.
I use
Async\Semaphore
to limit the concurrency in hhvm/hhast#399, which works good. But the current design ofAsync\Semaphore
does not support the use cases where thewaitForAsync
callers expect different types. I wonder if we could support the following type signature, so that we can use the sameSemaphore
limit the concurrency of heterogeneous job types.The text was updated successfully, but these errors were encountered: