Skip to content

No possibility to wait before all current tasks processed before moving to next #2

@nnikolash

Description

@nnikolash

In my program there are multiple simulators, which are all managed by a single clock simulator. Top layer call Move() to advance and bottom layers are using AfterFunc() to schedule processing of next tick.
Unfortunately when time comes the function passed to AfterFunc() is executed in new goroutine. It means, that Move() will advance immediately, not even giving a chance for bottom layer to schedule processing of next tick. I need a function like Move(), but which will wait for all triggered tasks to be fully process until returning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions