Skip to content

Thread safety of calls that result in transitions #13

Closed
@kristoiv

Description

@kristoiv

Possible problem case: eg. reading the current state name while transitioning. There is no locking going on as far as I can see. Am I missing something?

Eg.:

fsm := NewFSM(....)
go func() {
    fmt.Println(fsm.Current())
}()
go func() {
    fsm.Event("...")
}()

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