Skip to content

WIP Android-specific tests for WorkStealingDispatcher. #1371

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zach-klippenstein
Copy link
Collaborator

Validates behavior with Dispatchers.Main and .immediate.

This can't be merged as-is, since it requires the tests to live in the android source set but that's in a different module so it can't see WSD. Need to land #1370 first.

Validates behavior with `Dispatchers.Main` and `.immediate`.

This can't be merged as-is, since it requires the tests to live in the
android source set but that's in a different module so it can't see
WSD. Need to land #1370
first.
@@ -38,7 +38,7 @@ import kotlin.coroutines.resume
* delegate scheduling behavior to. This can either be a confined or unconfined dispatcher, and its
* behavior will be preserved transparently.
*/
internal open class WorkStealingDispatcher protected constructor(
public open class WorkStealingDispatcher protected constructor(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Undo this

Comment on lines -3 to +5
internal actual typealias Lock = Any
public actual typealias Lock = Any

internal actual inline fun <R> Lock.withLock(block: () -> R): R = synchronized(this, block)
public actual inline fun <R> Lock.withLock(block: () -> R): R = synchronized(this, block)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Undo this

Comment on lines -3 to +5
internal expect class Lock()
public expect class Lock()

internal expect inline fun <R> Lock.withLock(block: () -> R): R
public expect inline fun <R> Lock.withLock(block: () -> R): R
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Undo this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant