/
githubmirror
/
julia
Обзор
Документация
Войти
/
githubmirror
/
julia
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/channel_threadpool.jl
12 строк
547 B
Ian Butterworth
Capture/silence some noisy test warnings (#57111)
21 янв 2025, 05:23
Не верифицирован
21 янв 2025, 05:23
2e6ffbc
Код
Авторство
О чём код?
# This file is a part of Julia. License is MIT: https://julialang.org/license using Test using Base.Threads c = Channel{Symbol}() do c; put!(c, threadpool(current_task())); end @test take!(c) === threadpool(current_task()) c = Channel{Symbol}(spawn = true) do c; put!(c, threadpool(current_task())); end @test take!(c) === :default c = Channel{Symbol}(threadpool = :interactive) do c; put!(c, threadpool(current_task())); end @test take!(c) === :interactive @test_throws ArgumentError Channel{Symbol}(threadpool = :foo) do c; put!(c, :foo); end