-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hide declarations in internal package
- Loading branch information
Showing
13 changed files
with
46 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 7 additions & 1 deletion
8
...-core-common/src/main/kotlin/kotlinx/coroutines/experimental/internal/Closeable.common.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
package kotlinx.coroutines.experimental.internal | ||
|
||
expect interface Closeable { | ||
/** | ||
* Closeable entity. | ||
* @suppress **Deprecated** | ||
*/ | ||
@Deprecated("No replacement, see specific use") | ||
public expect interface Closeable { | ||
@Deprecated("No replacement, see specific code") | ||
fun close() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...inx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/internal/ArrayCopy.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package kotlinx.coroutines.experimental.internal | ||
|
||
actual fun <E> arraycopy(source: Array<E>, srcPos: Int, destination: Array<E?>, destinationStart: Int, length: Int){ | ||
internal actual fun <E> arraycopy(source: Array<E>, srcPos: Int, destination: Array<E?>, destinationStart: Int, length: Int){ | ||
System.arraycopy(source, srcPos, destination, destinationStart, length) | ||
} |
7 changes: 6 additions & 1 deletion
7
...inx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/internal/Closeable.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
package kotlinx.coroutines.experimental.internal | ||
|
||
actual typealias Closeable = java.io.Closeable | ||
/** | ||
* Closeable entity. | ||
* @suppress **Deprecated** | ||
*/ | ||
@Deprecated("No replacement, see specific use") | ||
public actual typealias Closeable = java.io.Closeable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...-coroutines-core-js/src/main/kotlin/kotlinx/coroutines/experimental/internal/ArrayCopy.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 7 additions & 2 deletions
9
...-coroutines-core-js/src/main/kotlin/kotlinx/coroutines/experimental/internal/Closeable.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
package kotlinx.coroutines.experimental.internal | ||
|
||
actual interface Closeable { | ||
actual fun close() | ||
/** | ||
* Closeable entity. | ||
* @suppress **Deprecated** | ||
*/ | ||
@Deprecated("No replacement, see specific use") | ||
public actual interface Closeable { | ||
public actual fun close() | ||
} |
8 changes: 4 additions & 4 deletions
8
...coroutines-core-js/src/main/kotlin/kotlinx/coroutines/experimental/internal/Concurrent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
package kotlinx.coroutines.experimental.internal | ||
|
||
actual typealias ReentrantLock = NoOpLock | ||
internal actual typealias ReentrantLock = NoOpLock | ||
|
||
actual inline fun <T> ReentrantLock.withLock(action: () -> T) = action() | ||
internal actual inline fun <T> ReentrantLock.withLock(action: () -> T) = action() | ||
|
||
public class NoOpLock { | ||
internal class NoOpLock { | ||
fun tryLock() = true | ||
fun unlock(): Unit {} | ||
} | ||
|
||
actual fun <E> subscriberList(): MutableList<E> = ArrayList() | ||
internal actual fun <E> subscriberList(): MutableList<E> = ArrayList() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters