protoactor-python
protoactor-python copied to clipboard
Queue type isn't thread safe
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
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.