question on what is going on under the hood #374
schaefer01
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hi,
I have questions ...
while putting:
async with aiomqtt.Client(broker) as client:
print("entering def_listen_1 (2)")
await client.subscribe("temperature/#")
async for message in client.messages:
print("listen_1:",message.payload)
in its own task group stays resident for all messages over time?
why using task groups there is background processing but there seems to be no ability to do foreground processing?
What am I missing? Is this in the API?
Can there be individual tasks instead of task groups? What am I missing? Is this in the API? And If there are then what would I lose over using a task group?
Is there a way to pause/resume a task or task group? I guess there would have to be a foreground to do that but
if not, then given certain "events" detected in one task, it might make sense to temporarily pause or halt and
restart other tasks. Does this make sense?
thank you,
bob s.
Beta Was this translation helpful? Give feedback.
All reactions