LegacyReader – backwards compatible Reader¶
- class nsq.LegacyReader(*args, **kwargs)¶
In v0.5.0 we dropped support for “tasks” in the nsq.Reader API in favor of a single message handler.
LegacyReader is a backwards compatible API for clients interacting with v0.5.0+ that want to continue to use “tasks”.
Usage:
from nsq import LegacyReader as Reader