A MutableConcurrentQueue interface to use under the hood in ZIO.
A MutableConcurrentQueue interface to use under the hood in ZIO.
The implementation at minimum:
1. Should be non-blocking and ideally lock-free.
2. Should provide basic metrics such as how many elements were enqueued/dequeued.
Note
this is declared as abstract class since invokevirtual
is slightly cheaper than invokeinterface.
A MutableConcurrentQueue interface to use under the hood in ZIO.
The implementation at minimum: 1. Should be non-blocking and ideally lock-free. 2. Should provide basic metrics such as how many elements were enqueued/dequeued.
this is declared as
abstract classsinceinvokevirtualis slightly cheaper thaninvokeinterface.