class CrawlerApplication : CoroutineScope
(source)
<init> |
CrawlerApplication(vertx: Vertx, config: CrawlerConfig, coroutineContext: CoroutineDispatcher = Executors.newFixedThreadPool(
config.numberOfThreads()
) {
val thread = Thread("crawler")
thread.isDaemon = true
thread
}.asCoroutineDispatcher()) |
config |
val config: CrawlerConfig |
coroutineContext |
val coroutineContext: CoroutineDispatcher |
vertx |
val vertx: Vertx |
connect |
fun connect(rlpxService: RLPxService, key: PublicKey, address: InetSocketAddress): AsyncCompletion |
createCoroutineContext |
fun createCoroutineContext(): ExecutorCoroutineDispatcher |
run |
fun run(): Unit |