• XavierNiu's avatar
    Ftr: Unbounded chan quota (#65) · c0e1af7c
    XavierNiu authored
    * add quota for unbounded queue and chan
    
    * unittests for UnboundedChan quota
    
    * go fmt
    
    * fix data race
    
    * update comments
    
    * fix Len()
    
    * go fmt
    
    * fix Cap() data race
    
    * fix typo
    
    * update comments
    
    * encapsulate queue operations
    
    * replace uber atomic
    
    * go fmt
    
    * unittests
    
    * fix border cases
    c0e1af7c
circular_unbounded_queue_test.go 3.39 KB