NopDisposable

Defines a instance property that return NOP Disposable.

Members

Functions

dispose
void dispose()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

instance
Disposable instance()

Inherited Members

From Disposable

dispose
void dispose()

Examples

Disposable d1 = NopDisposable.instance;
Disposable d2 = NopDisposable.instance;
assert(d1 !is null);
assert(d1 is d2);

Meta