Skip to content

Commit

Permalink
remove obsolete experimental annotations (#277)
Browse files Browse the repository at this point in the history
Co-authored-by: Hannes Dorfmann <[email protected]>
  • Loading branch information
gabrielittner and sockeqwe authored Mar 21, 2022
1 parent 5a2e97d commit 3a5baba
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.freeletics.flowredux

import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.consumeAsFlow
Expand Down Expand Up @@ -30,7 +29,6 @@ fun <A, S> Flow<A>.reduxStore(
* Creates a Redux store with a [initialStateSupplier] that produces the first state lazily once
* the flow starts.
*/
@ExperimentalCoroutinesApi
internal fun <A, S> Flow<A>.reduxStore(
initialStateSupplier: () -> S,
sideEffects: Iterable<SideEffect<S, A>>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ package com.freeletics.flowredux.dsl.flow
import com.freeletics.flowredux.GetState
import com.freeletics.flowredux.dsl.internal.Action
import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.channelFlow
import kotlinx.coroutines.flow.consumeAsFlow
import kotlinx.coroutines.launch

@ExperimentalCoroutinesApi
internal fun <S, A> Flow<Action<S, A>>.whileInState(
isInState: (S) -> Boolean,
getState: GetState<S>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@ package com.freeletics.flowredux.dsl.internal

import com.freeletics.flowredux.GetState
import com.freeletics.flowredux.SideEffect
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview

/**
* It's just not an Interface to not expose internal class `Action` to the public.
* Thus it's an internal abstract class but you can think of it as an internal interface.
*/
internal abstract class InStateSideEffectBuilder<InputState : S, S, A> {

@ExperimentalCoroutinesApi
@FlowPreview
internal abstract fun generateSideEffect(): SideEffect<S, Action<S, A>>

internal suspend inline fun runOnlyIfInInputState(
Expand Down

0 comments on commit 3a5baba

Please sign in to comment.