Skip to content

Commit

Permalink
Fix compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
twyatt committed Jan 13, 2023
1 parent 028b483 commit 630076f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions temporal/src/jsMain/kotlin/TickerTemporalFlow.kt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package com.juul.tuulbox.temporal

import kotlinx.coroutines.flow.Flow
import kotlin.time.Duration
import kotlin.time.Duration.Companion.minutes
import kotlin.time.ExperimentalTime

@ExperimentalTime
internal actual inline fun <T> inlineTemporalFlow(
crossinline factory: () -> T,
): Flow<T> = ticker(Duration.minutes(1), factory)
): Flow<T> = ticker(1.minutes, factory)

@ExperimentalTime
public actual fun <T> temporalFlow(
factory: () -> T,
): Flow<T> = ticker(Duration.minutes(1), factory)
): Flow<T> = ticker(1.minutes, factory)
6 changes: 3 additions & 3 deletions temporal/src/jvmMain/kotlin/TickerTemporalFlow.kt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.juul.tuulbox.temporal

import kotlinx.coroutines.flow.Flow
import kotlin.time.Duration
import kotlin.time.Duration.Companion.minutes

internal actual inline fun <T> inlineTemporalFlow(
crossinline factory: () -> T,
): Flow<T> = ticker(Duration.minutes(1), factory)
): Flow<T> = ticker(1.minutes, factory)

public actual fun <T> temporalFlow(
factory: () -> T,
): Flow<T> = ticker(Duration.minutes(1), factory)
): Flow<T> = ticker(1.minutes, factory)

0 comments on commit 630076f

Please sign in to comment.