eclipse-vertx / eclipse-vertx/vert.x
Allow VertxInternal.promise() on public API
Open
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
Assessment
This issue has not been assessed yet.