示例#1
0
    public static goroutinewrapper 读(chan o)
    {
        var r = new goroutinewrapper();

        r.inner       = o;
        r.readOrWrite = true;
        return(r);
    }
示例#2
0
    public static goroutinewrapper 写(chan o, object obj)
    {
        var r = new goroutinewrapper();

        r.inner       = o;
        r.inner.Val   = obj;
        r.readOrWrite = false;
        return(r);
    }
示例#3
0
 public static goroutinewrapper 读(chan o)
 {
     var r = new goroutinewrapper();
     r.inner = o;
     r.readOrWrite = true;
     return r;
 }
示例#4
0
 public static goroutinewrapper 写(chan o, object obj)
 {
     var r = new goroutinewrapper();
     r.inner = o;
     r.inner.Val = obj;
     r.readOrWrite = false;
     return r;
 }