Skip to content

Commit bb98119

Browse files
更改 BrokerApi.close 为普通方法
1 parent 842fe1a commit bb98119

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/src/main/kotlin/module-info.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@SuppressWarnings("requires-transitive-automatic")
22
module ktrader.broker.api {
3+
requires transitive kotlin.stdlib;
34
requires transitive kotlinx.coroutines.core.jvm;
45
requires transitive kevent;
56
requires transitive ktrader.datatype;

lib/src/main/kotlin/org/rationalityfrontline/ktrader/broker/api/BrokerApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ abstract class BrokerApi(val config: Map<String, Any>, val kEvent: KEvent) {
6060
/**
6161
* 关闭该实例并释放资源,调用后该实例将不再可用
6262
*/
63-
abstract suspend fun close()
63+
abstract fun close()
6464

6565
/**
6666
* 获取当前交易日(主要用于有夜盘的交易品种)

0 commit comments

Comments
 (0)