Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/workerpool.jl
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ julia> default_worker_pool()
WorkerPool(Channel{Int64}(sz_max:9223372036854775807,sz_curr:3), Set([4, 2, 3]), RemoteChannel{Channel{Any}}(1, 1, 4))
```
"""
function default_worker_pool()
function default_worker_pool()::AbstractWorkerPool
# On workers retrieve the default worker pool from the master when accessed
# for the first time
if _default_worker_pool[] === nothing
Expand All @@ -298,7 +298,7 @@ function default_worker_pool()
_default_worker_pool[] = remotecall_fetch(()->default_worker_pool(), 1)
end
end
return _default_worker_pool[]
return _default_worker_pool[]::AbstractWorkerPool
end

"""
Expand Down
Loading