Skip to main content
Immediately closes all active daemon processes and clears the daemon pool. This is useful for manual cleanup or when shutting down your application.

Syntax

Parameters

This method takes no parameters.

Returns

void - This method does not return a value.

Behavior

  • Closes all active daemon processes immediately
  • Clears the internal daemon pool completely
  • Does not wait for ongoing operations to complete
  • Frees all memory used by daemon processes
  • Safe to call even if no daemons are running

Example

Use cases

Application shutdown

After batch processing

Memory management

Important notes

  • Does not interrupt currently processing images
  • Daemons will be recreated automatically on next upscale operation
  • Use this for explicit cleanup; daemons also close automatically based on idle timeout

Source

Defined in index.mts:787-797