struct A { bool isDisposed() @property { return true; } void dispose() { } } class B { bool isDisposed() @property { return true; } void dispose() { } } interface C { bool isDisposed() @property; void dispose(); } static assert(isCancelable!A); static assert(isCancelable!B); static assert(isCancelable!C);
Tests if something is a Cancelable