mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
✨ Improve netty io executor shutdown
This commit is contained in:
@@ -17,7 +17,8 @@
|
|||||||
io.netty.channel.nio.NioEventLoopGroup
|
io.netty.channel.nio.NioEventLoopGroup
|
||||||
io.netty.util.concurrent.DefaultEventExecutorGroup
|
io.netty.util.concurrent.DefaultEventExecutorGroup
|
||||||
java.util.concurrent.ExecutorService
|
java.util.concurrent.ExecutorService
|
||||||
java.util.concurrent.ThreadFactory))
|
java.util.concurrent.ThreadFactory
|
||||||
|
java.util.concurrent.TimeUnit))
|
||||||
|
|
||||||
(set! *warn-on-reflection* true)
|
(set! *warn-on-reflection* true)
|
||||||
|
|
||||||
@@ -61,7 +62,10 @@
|
|||||||
|
|
||||||
(defmethod ig/halt-key! ::wrk/netty-io-executor
|
(defmethod ig/halt-key! ::wrk/netty-io-executor
|
||||||
[_ instance]
|
[_ instance]
|
||||||
(px/shutdown! instance))
|
(deref (.shutdownGracefully ^NioEventLoopGroup instance
|
||||||
|
(long 100)
|
||||||
|
(long 1000)
|
||||||
|
TimeUnit/MILLISECONDS)))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; IO Offload Executor
|
;; IO Offload Executor
|
||||||
|
|||||||
Reference in New Issue
Block a user