select for example. Of course you can do the same in Zig too, it's just going to be harder and lower level
 Thomas
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                      
                      
                        
                          Thomas
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                    
                    
                  That's a keyword?
 Thomas
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                      
                      
                        
                          Thomas
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                    
                    
                  It gets the first thing out of N channels?
https://gobyexample.com/select
first ready operation with ch
 Thomas
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                      
                      
                        
                          Thomas
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                    
                    
                  yea that can just be a function though
 Thomas
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                      
                      
                        
                          Thomas
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                    
                    
                  const channel, const value = select(.{ chanA, chanB });
Обсуждают сегодня