You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Device + Consent sync operate with LocalEvents, which are events global to a single client instance. Workers are spawned on client instantiation and do work for the life of the client. Right now we only have a single worker for sync, but its reasonable to foresee other possible workers in the future.
If this pattern becomes useful, it would be great to formalize workers into a trait, where workers can be dynamically registered to the client and spawned on instantiation together. This worker pattern so far is useful for separating concerns for tasks that don't have strict deadlines (like syncing)
The text was updated successfully, but these errors were encountered:
Device + Consent sync operate with
LocalEvents
, which are events global to a single client instance. Workers are spawned on client instantiation and do work for the life of the client. Right now we only have a single worker for sync, but its reasonable to foresee other possible workers in the future.If this pattern becomes useful, it would be great to formalize workers into a trait, where workers can be dynamically registered to the client and spawned on instantiation together. This worker pattern so far is useful for separating concerns for tasks that don't have strict deadlines (like syncing)
The text was updated successfully, but these errors were encountered: