Skip to content

Commit

Permalink
Update core.jl
Browse files Browse the repository at this point in the history
`warn()` is deprecated, use `@warn` instead.
  • Loading branch information
jaakkor2 committed Sep 22, 2018
1 parent 3365626 commit a99f216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core.jl
Expand Up @@ -269,8 +269,8 @@ end
function async_push!(n, x, onerror=print_error)
taken = Base.n_avail(_messages)
if taken >= CHANNEL_SIZE[]
warn("Message queue is full. Ordering may be incorrect. "*
"Channel size can be increased by setting `ENV[\"REACTIVE_CHANNEL_SIZE\"] = ...` before `using Reactive`.")
@warn "Message queue is full. Ordering may be incorrect. "*
"Channel size can be increased by setting `ENV[\"REACTIVE_CHANNEL_SIZE\"] = ...` before `using Reactive`."
@async put!(_messages, Message(n, x, onerror))
else
put!(_messages, Message(n, x, onerror))
Expand Down

0 comments on commit a99f216

Please sign in to comment.