vertx / io.vertx.reactivex.core / Vertx / createSharedWorkerExecutor

# createSharedWorkerExecutor

`open fun createSharedWorkerExecutor(name: String): WorkerExecutor`

Like `io.vertx.reactivex.core.Vertx#createSharedWorkerExecutor` but with the io.vertx.core.VertxOptions `poolSize`.

### Parameters

`name` -

Return

`open fun createSharedWorkerExecutor(name: String, poolSize: Int): WorkerExecutor`

Like `io.vertx.reactivex.core.Vertx#createSharedWorkerExecutor` but with the io.vertx.core.VertxOptions `maxExecuteTime`.

### Parameters

`name` -

`poolSize` -

Return

`open fun createSharedWorkerExecutor(name: String, poolSize: Int, maxExecuteTime: Long): WorkerExecutor`

Create a named worker executor, the executor should be closed when it's not needed anymore to release resources. This method can be called mutiple times with the same `name`. Executors with the same name will share the same worker pool. The worker pool size and max execute time are set when the worker pool is created and won't change after.

The worker pool is released when all the io.vertx.reactivex.core.WorkerExecutor sharing the same name are closed.

### Parameters

`name` - the name of the worker executor

`poolSize` - the size of the pool

`maxExecuteTime` - the value of max worker execute time, in ns

Return
the named worker executor