vibe.d beta banner
get vibe.d
0.7.30

Function LocalTaskSemaphore.tryLock

Try to acquire a lock.

If a lock cannot be acquired immediately, returns false and leaves the semaphore in its previous state.

Prototype

bool tryLock();

Returns

true is returned iff the number of available locks is greater than one.

block ddox.authorsblock ddox.copyrightblock ddox.license
Authors
Copyright
License