Skip to content

[Feature]: DurableFuture.allOf #24

Description

@maschnetwork

What would you like?

Instead of doing individual .get calls on DurableFuture I want to do DurableFuture.allOf(future1, future2). For example see this callback snippet:

var runner = LocalDurableTestRunner.create(String.class, (input, ctx) -> {
            var cb1 = ctx.createCallback("approval1", String.class);
            var cb2 = ctx.createCallback("approval2", String.class);

            var result1 = cb1.get();
            var result2 = cb2.get();
            //should be DurableFuture.allOf(cb1,cb2)


            return result1 + " and " + result2;
        });

Possible Implementation

No response

Is this a breaking change?

No

Does this require an RFC?

No

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions