eclipse-vertx / vertx-codegen

Vert.x code generator for asynchronous polyglot APIs
Apache License 2.0
105 stars 92 forks source link

Support method with future returning signature to declare asynchronous operations #331

Closed vietj closed 3 years ago

vietj commented 3 years ago

Vert.x 3 codegen model uses callback signatures to declare asynchronous operations. Vert.x 4 provides an hybrid model that allows future returning signatures to be used in addition of callbacks.

New modules should switch to a future returning signature to declare asynchronous operations. Codegen modules define the expected signature pattern to be used used, module validation and code generation happen accordingly.