Next Previous Up Top Contents Index

2.5.4 Using finalization in applications

2.5.4.1 How can my application drain the finalization queue automatically?

If you would prefer the queue to be drained asynchronously, use the automatic finalization interface. For more details, see automatic-finalization-enabled?, page 55 and automatic-finalization-enabled?-setter, page 56.

Libraries that do not wish to depend on automatic finalization should not use those functions. They should call drain-finalization-queue synchronously at useful times, such as whenever they call finalize-when-unreachable.

Libraries that are not written to depend on automatic finalization should always behave correctly if they are used in an application that does use it.


Common Dylan and Functional Extensions - 31 Mar 00

Next Previous Up Top Contents Index