Skip to content

Commit

Permalink
Make ExpiringExecutableFlowDataSource open so we can subclass it with…
Browse files Browse the repository at this point in the history
… our own datasource types. (#217)
  • Loading branch information
npresseault authored Feb 5, 2024
1 parent 9112044 commit 0cccfb4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby 2.7.5
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ public final class com/mirego/trikot/datasources/flow/ExecutableFlowDataSourceRe
public fun toString ()Ljava/lang/String;
}

public final class com/mirego/trikot/datasources/flow/ExpiringExecutableFlowDataSource : com/mirego/trikot/datasources/flow/BaseExpiringExecutableFlowDataSource {
public class com/mirego/trikot/datasources/flow/ExpiringExecutableFlowDataSource : com/mirego/trikot/datasources/flow/BaseExpiringExecutableFlowDataSource {
public fun <init> ()V
public fun <init> (Lcom/mirego/trikot/datasources/flow/FlowDataSource;Lkotlin/coroutines/CoroutineContext;)V
public synthetic fun <init> (Lcom/mirego/trikot/datasources/flow/FlowDataSource;Lkotlin/coroutines/CoroutineContext;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
protected fun internalRead (Lcom/mirego/trikot/datasources/flow/ExpiringExecutableFlowDataSourceRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public synthetic fun internalRead (Lcom/mirego/trikot/datasources/flow/FlowDataSourceRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ public final class com/mirego/trikot/datasources/flow/ExecutableFlowDataSourceRe
public fun toString ()Ljava/lang/String;
}

public final class com/mirego/trikot/datasources/flow/ExpiringExecutableFlowDataSource : com/mirego/trikot/datasources/flow/BaseExpiringExecutableFlowDataSource {
public class com/mirego/trikot/datasources/flow/ExpiringExecutableFlowDataSource : com/mirego/trikot/datasources/flow/BaseExpiringExecutableFlowDataSource {
public fun <init> ()V
public fun <init> (Lcom/mirego/trikot/datasources/flow/FlowDataSource;Lkotlin/coroutines/CoroutineContext;)V
public synthetic fun <init> (Lcom/mirego/trikot/datasources/flow/FlowDataSource;Lkotlin/coroutines/CoroutineContext;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
protected fun internalRead (Lcom/mirego/trikot/datasources/flow/ExpiringExecutableFlowDataSourceRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public synthetic fun internalRead (Lcom/mirego/trikot/datasources/flow/FlowDataSourceRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ data class ExpiringExecutableFlowDataSourceRequest<T>(
val block: suspend () -> T
) : ExpiringFlowDataSourceRequest

class ExpiringExecutableFlowDataSource<T>(
open class ExpiringExecutableFlowDataSource<T>(
cacheDataSource: FlowDataSource<ExpiringExecutableFlowDataSourceRequest<T>, FlowDataSourceExpiringValue<T>>? = null,
coroutineContext: CoroutineContext = EmptyCoroutineContext
) : BaseExpiringExecutableFlowDataSource<ExpiringExecutableFlowDataSourceRequest<T>, T>(cacheDataSource, coroutineContext) {
Expand Down

0 comments on commit 0cccfb4

Please sign in to comment.