scala / 3.1 / scala / sys / shutdownhookthread$.html

Object scala.sys.ShutdownHookThread

Supertypes
Self type

Concrete methods

Source
def apply(body: => Unit): ShutdownHookThread

Creates, names, and registers a shutdown hook to run the given code.

© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.1.1/scala/sys/ShutdownHookThread$.html