github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/common/task/common.go (about)

     1  package task
     2  
     3  import "github.com/v2fly/v2ray-core/v5/common"
     4  
     5  // Close returns a func() that closes v.
     6  func Close(v interface{}) func() error {
     7  	return func() error {
     8  		return common.Close(v)
     9  	}
    10  }