On this pageHome > flowp > Semaphore > acquire Semaphore.acquire() method Acquire a permit, resolve when resouce is available. Signature: acquire(timeout?: number): Promise<() => void>; Parameters ParameterTypeDescriptiontimeoutnumber Returns: Promise<() => void> a function to release semaphore