Skip to content

Improve documentation example for DispatchManagingActor #56

Open
@llucax

Description

@llucax

The DispatchManagingActor example in the class docs should do something else than just listening to updates.

Maybe it is worth adding some other logic to represent that, maybe implement a ClockActor that ticks every X time, where X is a dispatch option? So we have a select() instead with a timer (printing the time) and the updates_channel.

The example should also clearly show that the managed actor's _run() method should first receive from the updates channel, otherwise it might miss the initial setup of the dispatch. This should also probably be mentioned more explicitly in the docs themselves, not just the example.

I even wonder if we should somehow enforce this, requiring a special start() method for managed actors or something like that.

Originally posted by @llucax in:

Metadata

Metadata

Assignees

No one assigned

    Labels

    part:docsAffects the documentationtype:enhancementNew feature or enhancement visitble to users

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions