Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
radicle: introduce announcer
Merged fintohaps opened 11 months ago

Similar to the Fetcher sans-IO approach, an Announcer sans-IO approach is introduced. The previous Handler::announce was already quite close to using a sans-IO approach, but using internally held state. This change makes the business logic more reusable – and testable.

Similarly to the Fetcher, the Announcer is configured and then driven by telling it when nodes have been synchronized with. It will continuously check if it has reached its target, yielding to the caller to decide whether to keep going. In contrast, it also provides a way to mark the process as timed out, since announcing relies on waiting for events to come back in a timely manner.

fintohaps opened with revision 9d47d8b9 on base 98bee332 +722 -223 11 months ago

Similar to the Fetcher sans-IO approach, an Announcer sans-IO approach is introduced. The previous Handler::announce was already quite close to using a sans-IO approach, but using internally held state. This change makes the business logic more reusable – and testable.

Similarly to the Fetcher, the Announcer is configured and then driven by telling it when nodes have been synchronized with. It will continuously check if it has reached its target, yielding to the caller to decide whether to keep going. In contrast, it also provides a way to mark the process as timed out, since announcing relies on waiting for events to come back in a timely manner.

fintohaps pushed revision 2 3025be66 on base 5a0a334d +2418 -557 11 months ago

Changes:

  • Rebased on stacked patches
fintohaps pushed revision 3 74689cdc on base 244e272a +767 -262 11 months ago

Rebased

lorenz pushed revision 4 ba94d390 on base cc96b9ed +752 -262 11 months ago

Rebase

did:key:z6MkgFq6...nBGz accepted 11 months ago
lorenz merged revision ba94d390 at 5b4cbc2c 11 months ago