1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-04 08:15:21 -05:00

h2 transport

This commit is contained in:
Darien Raymond
2018-03-01 13:16:52 +01:00
parent af29e42771
commit d207d953bd
14 changed files with 467 additions and 28 deletions

View File

@@ -27,3 +27,16 @@ type HasType interface {
// Type returns the type of the object.
Type() interface{}
}
type ChainedClosable []Closable
func NewChainedClosable(c ...Closable) ChainedClosable {
return ChainedClosable(c)
}
func (cc ChainedClosable) Close() error {
for _, c := range cc {
c.Close()
}
return nil
}