Skip to content

Commit

Permalink
allow suspend fun for onArgsReceived
Browse files Browse the repository at this point in the history
  • Loading branch information
iamcalledrob committed Aug 7, 2024
1 parent 8306a59 commit ba70e36
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class SingleInstance(
private val onExit: () -> Unit = { exitProcess(0) },
) {

fun args(args: Array<String>, onArgsReceived: (Array<String>) -> Unit) {
fun args(args: Array<String>, onArgsReceived: suspend (Array<String>) -> Unit) {
// There is a race condition here, where another instance holds the lock, but terminates before dial
// is able to complete successfully.
//
Expand Down

0 comments on commit ba70e36

Please sign in to comment.