mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 13:00:28 +00:00
core/sync/chan.select_raw: call try_select_raw with deprecation warning
Eventually select_raw should be a blocking select operation, but for now we need to migrate people away.
This commit is contained in:
@@ -1254,6 +1254,11 @@ try_select_raw :: proc "odin" (recvs: []^Raw_Chan, sends: []^Raw_Chan, send_msgs
|
||||
}
|
||||
}
|
||||
|
||||
@(require_results, deprecated = "use try_select_raw")
|
||||
select_raw :: proc "odin" (recvs: []^Raw_Chan, sends: []^Raw_Chan, send_msgs: []rawptr, recv_out: rawptr) -> (select_idx: int, status: Select_Status) #no_bounds_check {
|
||||
return try_select_raw(recvs, sends, send_msgs, recv_out)
|
||||
}
|
||||
|
||||
/*
|
||||
`Raw_Queue` is a non-thread-safe queue implementation designed to store messages
|
||||
of fixed size and alignment.
|
||||
|
||||
Reference in New Issue
Block a user