Open mkroutikov opened 4 years ago
About 1), when connecting signals to async slots using an emissions nursery, do the normal connection rules apply? I mean, if either the signal owner or the slot owner are destroyed, the connection is undone automatically, so I wonder if the same happens here.
I certainly haven't dealt with that explicitly. See https://github.com/altendky/qtrio/issues/97.
Looks like the latest addition to qtrio (
open_emissions_nursery
) is all we need.Here is a sketch of the code:
Note that presently we:
aconnect
to connect signal to an async handler.To use this, just do something like:
Basically the above provides a minimally intrusive way to incorporate async jobs into legacy apps. cc: @altendkey