简体   繁体   中英

What are the limits of vert.x handler<> and why futur is used instead?

What are the limits of vert.x handler<> and why futur is used instead !

What is the difference between the handler interface and futur?

In Vert.x, a Handler is an asynchronous callback function. The only "limitation" it has is that it shouldn't contain blocking code.

A Future is a result of an asynchronous function.

Future is not used instead of Handler . You can have a handler that doesn't return a future, or you can have a Future that is not returned by a handler.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM