Skip to content

大佬有支持【确保队列中元素唯一】这一特性的计划吗? #7

@swatchion

Description

@swatchion

比如使用队列来更新数据库中的记录, 队列中的对象有时候会出现同一个的 class 的不同 mutation,不同的mutation 示例实际上只有处于队列末端的元素是最近的一次更新,其他的 mutation 可以忽略掉,甚至不调用 handle 进行处理,因此队列中需要根据 key 的来维护一个唯一性的元素。

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