public void Invoke() { Cleanup(); using (_element.Bind(_node, false)) _cleanup = _effect?.Invoke(); }
public void Cleanup() { var cleanup = _cleanup; if (cleanup == null) { return; } _cleanup = null; using (_element.Bind(_node, false)) cleanup(); }
public void Invoke() { Cleanup(); using (_element.Bind(_node, false)) _cleanup = _effect?.Invoke(); }
public void Cleanup() { var cleanup = _cleanup; if (cleanup == null) { return; } _cleanup = null; using (_element.Bind(_node, false)) cleanup(); }