Skip to content

Commit

Permalink
Remove unrequired parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
clementetb committed Aug 4, 2023
1 parent 5e123c2 commit 2200971
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2097,10 +2097,7 @@ private class JVMScheduler(dispatcher: CoroutineDispatcher) {
val scope: CoroutineScope = CoroutineScope(dispatcher)

fun notifyCore(schedulerPointer: Long) {
scope.launch(
context = scope.coroutineContext, // FIXME REQUIRED? this is something additional
start = CoroutineStart.DEFAULT // FIXME ATOMIC?
) {
scope.launch {
realmc.invoke_core_notify_callback(schedulerPointer)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3399,7 +3399,7 @@ actual object RealmInterop {
}

override fun notify() {
val function: suspend CoroutineScope.() -> Unit = {
scope.launch {
try {
printlntid("on dispatcher")
realm_wrapper.realm_scheduler_perform_work(scheduler)
Expand All @@ -3409,11 +3409,6 @@ actual object RealmInterop {
e.printStackTrace()
}
}
scope.launch(
scope.coroutineContext,
CoroutineStart.DEFAULT,
function
)
}
}
}
Expand Down

0 comments on commit 2200971

Please sign in to comment.