ClosableNetworkAdapter class abstract

可选接口:支持释放底层资源的网络适配器。

自定义适配器实现该接口后,RxNet.dispose 会自动调用 close。 不实现该接口的适配器保持兼容,不会被强制关闭。

Implementers

Constructors

ClosableNetworkAdapter()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → Future<void>
释放底层客户端、连接池、回调等资源
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited