1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 18:17:52 -05:00
v2fly/common/task/common.go

11 lines
197 B
Go
Raw Normal View History

2018-05-27 07:02:29 -04:00
package task
2021-02-16 15:31:50 -05:00
import "github.com/v2fly/v2ray-core/v4/common"
2018-05-27 07:02:29 -04:00
2018-12-06 05:35:02 -05:00
// Close returns a func() that closes v.
func Close(v interface{}) func() error {
2018-05-27 07:02:29 -04:00
return func() error {
return common.Close(v)
}
}