Skip to content

[Feature]: add waitAsync method #84

@zhongkechen

Description

@zhongkechen

What would you like?

I would like to have waitAsync

var future = context.waitAsync(Duration.ofSeconds(5)); // non-blocking
future.get();  // wait for 5 seconds

So that the wait future

  • can be used with other futures in anyOf
  • limit the total time since the wait future created

Possible Implementation

No response

Is this a breaking change?

No

Does this require an RFC?

No

Additional Context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Ready

Relationships

None yet

Development

No branches or pull requests

Issue actions