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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user