V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
cpdyj0
V2EX  ›  Kotlin

请教下, Vert.x 框架我该引入哪个 Vertx 类?

  •  
  •   cpdyj0 · Dec 26, 2018 · 6982 views
    This topic created in 2689 days ago, the information mentioned may be changed or developed.

    我看到 Vertx 有两个: io.vertx.core.Vertxio.vertx.kotlin.core.Vertx ,后者似乎有一个 dispatcher 方法,这个好像对 coroutine 有用。我该用后者替换前者吗?还是像后者内部代码一样,alias 一下?

    1 replies    2019-04-09 10:23:08 +08:00
    okou19900722
        1
    okou19900722  
       Apr 9, 2019   ❤️ 1
    io.vertx.kotlin.core.Vertx 是一个 object class,目的是为了让你像静态方法一样来调用一些 suspend 方法。有更多问题讨论,欢迎加入 QQ 群:515203212
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1078 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 23:00 · PVG 07:00 · LAX 16:00 · JFK 19:00
    ♥ Do have faith in what you're doing.