Skip to content

Commit

Permalink
Add isopen for server
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Sep 17, 2024
1 parent ff2cf22 commit 3b5ebce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server.jl
Original file line number Diff line number Diff line change
Expand Up @@ -287,4 +287,6 @@ function Base.close(server::Server)
notify(server.closed)
end
return
end
end

Base.isopen(server::Server) = @atomic(server.state) != :closed

0 comments on commit 3b5ebce

Please sign in to comment.