MCPcopy Create free account
hub / github.com/ddiakopoulos/polymer / disconnect

Method disconnect

libraries/lib-engine/src/core-events.cpp:160–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158 }
159
160 void event_manager_sync::connection::disconnect()
161 {
162 if (auto handler = handlers.lock())
163 {
164 handler->remove(type, id, nullptr);
165 handler.reset();
166 }
167 }
168
169 event_manager_sync::scoped_connection event_manager_sync::connect(poly_typeid type, event_handler handler) { /* todo */ return {{}}; }
170

Callers 1

Calls 2

removeMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected