PubSubStreamingPullTask class¶
fastpubsub.concurrency.tasks.PubSubStreamingPullTask
¶
A task for polling messages from a Pub/Sub subscription.
Initializes the PubSubPollTask.
| PARAMETER | DESCRIPTION |
|---|---|
subscriber
|
The subscriber to poll messages for.
TYPE:
|
Source code in fastpubsub/concurrency/tasks.py
start
async
¶
Starts the message polling loop.
Source code in fastpubsub/concurrency/tasks.py
task_ready
¶
Checks if the task is ready.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if the task is ready, False otherwise. |
Source code in fastpubsub/concurrency/tasks.py
task_alive
¶
Checks if the task is alive.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if the task is alive, False otherwise. |
Source code in fastpubsub/concurrency/tasks.py
shutdown
async
¶
Shuts down the task.