Signal.clear

Remove all handlers from the signal

struct Signal(Types...)
@trusted
void
clear
()

Examples

@safe void handler() {};
Signal!() onTest;
assert(onTest.calculateLength() == 0);
onTest.connect(&handler);
assert(onTest.calculateLength() == 1);
onTest.clear();
assert(onTest.calculateLength() == 0);
onTest();

Meta