Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

receive_many -> receive #25

Closed
dilyanpalauzov opened this issue Sep 27, 2017 · 1 comment
Closed

receive_many -> receive #25

dilyanpalauzov opened this issue Sep 27, 2017 · 1 comment

Comments

@dilyanpalauzov
Copy link

In asgiref/worker.py:76 replace receive_many with receive.

Likewise in django/channels.git

channels/channel.py:13: a) Hide receive_many from end-users, as it is only for interface servers
channels/handler.py:132: _, chunk = message.channel_layer.receive_many(
channels/sessions.py:101: channel, content = message.channel_layer.receive_many([wait_channel], block=False)
channels/test/base.py:68: recv_channel, content = channel_layers[alias].receive_many([channel])
channels/test/base.py:105: recv_channel, content = channel_layers[self.alias].receive_many([channel])
channels/worker.py:87: channel, content = self.channel_layer.receive_many(channels, block=True)
docs/faqs.rst:137: yourproject.asgi.channel_layer and call send() and receive_many()
docs/testing.rst:36:you (if you want, you can call receive_many on the underlying channel layer,

so that the system can be started without generating warnings.

In asgiref/base_layer.py:77 replace "intepret" with "interpret".

@andrewgodwin
Copy link
Member

I'm in the middle of rewriting all of these so this won't be a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants