Skip to content

Commit 77dfa83

Browse files
committed
Expose next_event_async in bindings
.. which requires us to include a dependency on the `kotlinx-coroutines` package.
1 parent 9e2c147 commit 77dfa83

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

bindings/kotlin/ldk-node-android/lib/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ android {
4343
dependencies {
4444
implementation("net.java.dev.jna:jna:5.12.0@aar")
4545
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7")
46+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
4647
implementation("androidx.appcompat:appcompat:1.4.0")
4748
implementation("androidx.core:core-ktx:1.7.0")
4849
api("org.slf4j:slf4j-api:1.7.30")

bindings/kotlin/ldk-node-jvm/lib/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ dependencies {
4646

4747
// Use the Kotlin JDK 8 standard library.
4848
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
49+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
4950

5051
implementation("net.java.dev.jna:jna:5.12.0")
5152
}

bindings/ldk_node.udl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ interface LDKNode {
4343
void stop();
4444
Event? next_event();
4545
Event wait_next_event();
46+
[Async]
47+
Event next_event_async();
4648
void event_handled();
4749
PublicKey node_id();
4850
sequence<SocketAddress>? listening_addresses();

0 commit comments

Comments
 (0)