protoactor-python icon indicating copy to clipboard operation
protoactor-python copied to clipboard

Queue type isn't thread safe

Open lucasvfventura opened this issue 7 years ago • 1 comments

Python provide several queues implementation as queue, asyncio.queue and multiprocessing.queue.

Due Python features we will provide several dispatcher which one may be more appropriate than the other depending on the scenario. This way the queue being used and all logic around it must take into account this different execution scenarios and yet be simple to understand

lucasvfventura avatar Mar 06 '17 04:03 lucasvfventura

Right now there is used asyncio.Queue https://github.com/AsynkronIT/protoactor-python/blob/b296de864d216ea5b90b6512e72d7e50eb03d72b/protoactor/mailbox/queue.py#L2 . I couldn't find other queues in project.

Also as was mentioned in this issue : https://github.com/AsynkronIT/protoactor-python/issues/25 we can focus on one working process where standart queue is thread safe.

alexpantyukhin avatar Mar 12 '17 20:03 alexpantyukhin