From c1cd525d9df428897393c748acdafe077b7de19d Mon Sep 17 00:00:00 2001 From: Jack Mordaunt Date: Wed, 11 Jun 2025 12:32:13 -0300 Subject: [PATCH] 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. --- core/sync/chan/chan.odin | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/sync/chan/chan.odin b/core/sync/chan/chan.odin index 694d89aeb..c5a4cf317 100644 --- a/core/sync/chan/chan.odin +++ b/core/sync/chan/chan.odin @@ -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.