diff --git a/src/Observables.jl b/src/Observables.jl index 31da44d..643c9e2 100644 --- a/src/Observables.jl +++ b/src/Observables.jl @@ -86,6 +86,9 @@ function Base.setindex!(@nospecialize(observable::Observable), @nospecialize(val return notify(observable) end +# For external packages that don't want to access an internal field +setexcludinghandlers!(obs::AbstractObservable, val) = observe(obs).val = val + """ observable[]