NopDisposable

Defines a instance property that return NOP Disposable.

final
class NopDisposable : Disposable {}

Members

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);