View source code
Display the source code in core/runtime.d from which this
page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a
Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
core.runtime.Runtime.collectHandler
- multiple declarations
Function Runtime.collectHandler
Overrides the default collect hander with a user-supplied version. This routine will be called for each resource object that is finalized in a non-deterministic manner--typically during a garbage collection cycle. If the supplied routine returns true then the object's dtor will called as normal, but if the routine returns false than the dtor will not be called. The default behavior is for all object dtors to be called.
Parameters
Name | Description |
---|---|
h | The new collect handler. Set to null to use the default handler. |
Function Runtime.collectHandler
Gets the current collect handler.
static bool collectHandler
(
void
);
Returns
The current collect handler or null if none has been set.
Authors
Sean Kelly
License
Copyright © 1999-2018 by the D Language Foundation | Page generated by ddox.