Commit bf9dcbca authored by Him188's avatar Him188

Add WeakRef

parent 3731bd98
...@@ -18,7 +18,7 @@ inline class UnsafeWeakRef<T>(private val weakRef: WeakRef<T>) { ...@@ -18,7 +18,7 @@ inline class UnsafeWeakRef<T>(private val weakRef: WeakRef<T>) {
* val bot: Bot by param.unsafeWeakRef() * val bot: Bot by param.unsafeWeakRef()
* ``` * ```
*/ */
operator fun getValue(thisRef: Any?, property: KProperty<*>): T? = this.get() operator fun getValue(thisRef: Any?, property: KProperty<*>): T = this.get()
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment