Function createSemaphoreStream
Creates a new semaphore stream instance.
SemaphoreStream!(Stream,Semaphore,LockArgs) createSemaphoreStream(Stream, Semaphore, LockArgs...)
(
Stream stream,
Semaphore semaphore,
LockArgs lock_args
)
if (isInputStream!Stream || isOutputStream!Stream);
Parameters
Name | Description |
---|---|
stream | The stream to forward any operations to |
semaphore | Semaphore-like object that offers a lock /unlock or
wait /notify interface to limit the amount of concurrent I/O
operations. vibe provides a suitable semaphore
implementation. |
lock_args | Optional arguments to pass to the semaphore's lock /wait
method. |