File tree 2 files changed +10
-4
lines changed 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ This documents notable changes in DistributedNext.jl. The format is based on
12
12
### Fixed
13
13
- Fixed a cause of potential hangs when exiting the process ([ #16 ] ).
14
14
15
- ## [ v1.0.0] - 2024-12-02
16
-
17
15
### Added
18
16
- A watcher mechanism has been added to detect when both the Distributed stdlib
19
17
and DistributedNext may be active and adding workers. This should help prevent
20
18
incompatibilities from both libraries being used simultaneously ([ #10 ] ).
21
19
20
+ ## [ v1.0.0] - 2024-12-02
21
+
22
22
### Fixed
23
23
- Fixed behaviour of ` isempty(::RemoteChannel) ` , which previously had the
24
24
side-effect of taking an element from the channel ([ #3 ] ).
Original file line number Diff line number Diff line change @@ -142,8 +142,14 @@ function __init__()
142
142
if _check_distributed_active ()
143
143
return
144
144
end
145
-
146
- sleep (1 )
145
+
146
+ try
147
+ sleep (1 )
148
+ catch
149
+ # sleep() may throw when the internal object it waits on is closed
150
+ # as the process exits.
151
+ return
152
+ end
147
153
end
148
154
errormonitor (watcher_task)
149
155
end
You can’t perform that action at this time.
0 commit comments