Skip to content

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.
* 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