Skip to content

Remove W3CWindow from public API #4175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions kotlinx-coroutines-core/api/kotlinx-coroutines-core.klib.api
Original file line number Diff line number Diff line change
Expand Up @@ -944,11 +944,6 @@ final suspend fun (org.w3c.dom/Window).kotlinx.coroutines/awaitAnimationFrame():
// Targets: [js]
final suspend fun <#A: kotlin/Any?> (kotlin.js/Promise<#A>).kotlinx.coroutines/await(): #A // kotlinx.coroutines/await|[email protected]<0:0>(){0§<kotlin.Any?>}[0]
// Targets: [wasmJs]
abstract class kotlinx.coroutines/W3CWindow { // kotlinx.coroutines/W3CWindow|null[0]
constructor <init>() // kotlinx.coroutines/W3CWindow.<init>|<init>(){}[0]
final fun clearTimeout(kotlin/Int) // kotlinx.coroutines/W3CWindow.clearTimeout|clearTimeout(kotlin.Int){}[0]
}
// Targets: [wasmJs]
final fun <#A: kotlin/Any?> (kotlin.js/Promise<kotlin.js/JsAny?>).kotlinx.coroutines/asDeferred(): kotlinx.coroutines/Deferred<#A> // kotlinx.coroutines/asDeferred|[email protected]<kotlin.js.JsAny?>(){0§<kotlin.Any?>}[0]
// Targets: [wasmJs]
final fun <#A: kotlin/Any?> (kotlinx.coroutines/CoroutineScope).kotlinx.coroutines/promise(kotlin.coroutines/CoroutineContext = ..., kotlinx.coroutines/CoroutineStart = ..., kotlin.coroutines/SuspendFunction1<kotlinx.coroutines/CoroutineScope, #A>): kotlin.js/Promise<kotlin.js/JsAny?> // kotlinx.coroutines/promise|[email protected](kotlin.coroutines.CoroutineContext;kotlinx.coroutines.CoroutineStart;kotlin.coroutines.SuspendFunction1<kotlinx.coroutines.CoroutineScope,0:0>){0§<kotlin.Any?>}[0]
Expand Down
2 changes: 1 addition & 1 deletion kotlinx-coroutines-core/js/src/JSDispatcher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package kotlinx.coroutines
import org.w3c.dom.*
import kotlin.js.Promise

public actual typealias W3CWindow = Window
internal actual typealias W3CWindow = Window

internal actual fun w3cSetTimeout(window: W3CWindow, handler: () -> Unit, timeout: Int): Int =
setTimeout(window, handler, timeout)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package kotlinx.coroutines
import kotlinx.coroutines.internal.*
import kotlin.coroutines.*

public expect abstract class W3CWindow
internal expect abstract class W3CWindow
internal expect fun w3cSetTimeout(window: W3CWindow, handler: () -> Unit, timeout: Int): Int
internal expect fun w3cSetTimeout(handler: () -> Unit, timeout: Int): Int
internal expect fun w3cClearTimeout(handle: Int)
Expand Down
2 changes: 1 addition & 1 deletion kotlinx-coroutines-core/wasmJs/src/JSDispatcher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package kotlinx.coroutines

import kotlin.js.*

public actual abstract external class W3CWindow {
internal actual abstract external class W3CWindow {
fun clearTimeout(handle: Int)
}

Expand Down