Skip to content

Eval thread safety #4598

Open
Open
@durban

Description

@durban

If we have an Eval like this:

val e = Eval.defer(Eval.always { println("foo") }).memoize

Accessing e.value concurrently from different threads sometimes prints foo twice. I'm not sure if Eval is supposed to be thread safe, but this seems like a bug.

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