Implement callSuspend and callSuspendBy functions as KCallable's
extension methods. Also make isSuspend a member of KCallable. #KT-21972: Fixed
This commit is contained in:
committed by
Ilya Gorbunov
parent
66315cee45
commit
e93683621a
@@ -166,4 +166,10 @@ public abstract class CallableReference implements KCallable, Serializable {
|
||||
public boolean isAbstract() {
|
||||
return getReflected().isAbstract();
|
||||
}
|
||||
|
||||
@Override
|
||||
@SinceKotlin(version = "1.3")
|
||||
public boolean isSuspend() {
|
||||
return getReflected().isSuspend();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user