8000 Add `yield_context` to RepeatingOperation · Issue #1973 · XRPLF/clio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add yield_context to RepeatingOperation #1973
Open
@kuznetsss

Description

@kuznetsss

Summary

There is RepeatingOperation in our async framework (in contexts and strands) which takes a functor to repeat with no arguments. Sometimes it is useful to get a yield_context to use it inside the repeating action for example to perform DB related operations.
We should add an overload for RepeatingOperation with an access for repeating aciton to the yield_context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    📋 Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0