eclipse-vertx / eclipse-vertx/vert.x

Allow VertxInternal.promise() on public API

Open
#4,530 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
14.7k
Forks
2.1k
Avg merge
2d 7h
Merged PRs (30d)
28

Description

#### Describe the feature

`VertxInternal` and `ContextInternal` have method `promise()` which allows to create `Promise` instance bounded and handled on current context as executable task. Enabling these methods on public interface (`Vertx` and `Context`) will allow to simplify usage.

#### Use cases

Better "splitting" of CPU heavy jobs via `vertx.promise()` / `context.promise()` instead of calling `runOnContext` on chunks of works and creating custom handlers to join them.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.