Function Database.setProgressHandler
Registers a delegate of type ProgressHandlerDelegate
as the progress handler.
void setProgressHandler
(
int pace,
int delegate() progressHandler
);
Any previously set handler is released.
Pass null
to disable the callback.
Parameters
Name | Description |
---|---|
pace | The approximate number of virtual machine instructions that are evaluated between successive invocations of the handler. |
progressHandler | A delegate that should return 0 if the operation can continue or another value if it must be aborted. |