Skip to content

Inconsistent callback execution - sync vs async #206

@gkubisa

Description

@gkubisa

Callbacks in ShareDB are usually executed asynchronously but in some situations they are executed synchronously, especially when invoked with an error. This is inconsistent and may lead to unexpected behavior in client code. Could callbacks always be executed asynchronously?

See http://blog.izs.me/post/59142742143/designing-apis-for-asynchrony.

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