create

open fun create(): Cleaner

Returns a new Cleaner.

The cleaner creates a daemon thread to process the phantom reachable objects and to invoke cleaning actions. The cleaner terminates when it is phantom reachable and all of the registered cleaning actions are complete.

Return

a new Cleaner