djangochannelsrestframework
djangochannelsrestframework copied to clipboard
[Feature] Api to enable the processing of multiple actions concurrently on a consumer.
It would be nice to have a simple way to fire of a sub-async run loop as and when a request arrives (if this request is going to take some IO time) so that other messages on the same WebSocket connection can be processed.
I'm thinking that this could be done by adding an argument to that
@action(blocking=False)
that then starts a nested runloop for this message.
or @nonblocking
that requires a dedicated mixin to be added to the Consumer.