Skip to content

Commit

Permalink
Merge pull request #97 from rasmushenningsson/setexcludinghandlers
Browse files Browse the repository at this point in the history
Reintroduce setexcludinghandlers!
  • Loading branch information
SimonDanisch authored Sep 30, 2022
2 parents deb82e2 + e717071 commit 830ddaf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Observables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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[]
Expand Down

0 comments on commit 830ddaf

Please sign in to comment.