Exemplo n.º 1
0
        public static SelectSet CaseRecv <T>(Channel <T> channel, Action <T> action)
        {
            var selectSet = new SelectSet();

            selectSet.CaseRecv(channel, action);
            return(selectSet);
        }
Exemplo n.º 2
0
        public static SelectSet CaseSend <T>(Channel <T> channel, T msg)
        {
            var selectSet = new SelectSet();

            selectSet.CaseSend(channel, msg);
            return(selectSet);
        }