Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor EnqueuedJob.CancellationPolicy #413

Merged
merged 5 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 37 additions & 20 deletions library/runtime-core/api/runtime-core.api
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public abstract class io/matthewnelson/kmp/tor/runtime/core/EnqueuedJob {
protected fun <init> (Ljava/lang/String;Lio/matthewnelson/kmp/tor/runtime/core/OnFailure;Lio/matthewnelson/kmp/tor/runtime/core/UncaughtException$Handler;)V
public final fun cancel (Ljava/util/concurrent/CancellationException;)Z
protected final fun cancellationAttempt ()Ljava/util/concurrent/CancellationException;
public fun getCancellationPolicy ()Lio/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$CancellationPolicy;
public fun getExecutionPolicy ()Lio/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$ExecutionPolicy;
public static final fun immediateErrorJob (Lio/matthewnelson/kmp/tor/runtime/core/OnFailure;Ljava/lang/String;Ljava/lang/Throwable;Lio/matthewnelson/kmp/tor/runtime/core/UncaughtException$Handler;)Lio/matthewnelson/kmp/tor/runtime/core/EnqueuedJob;
public static final fun immediateSuccessJob (Lio/matthewnelson/kmp/tor/runtime/core/OnSuccess;Ljava/lang/String;Ljava/lang/Object;Lio/matthewnelson/kmp/tor/runtime/core/UncaughtException$Handler;)Lio/matthewnelson/kmp/tor/runtime/core/EnqueuedJob;
public final fun invokeOnCompletion (Lio/matthewnelson/kmp/tor/runtime/core/ItBlock;)Lio/matthewnelson/kmp/tor/runtime/core/Disposable;
Expand All @@ -48,34 +48,51 @@ public abstract class io/matthewnelson/kmp/tor/runtime/core/EnqueuedJob {
public final fun toString ()Ljava/lang/String;
}

public final class io/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$CancellationPolicy {
public static final field Companion Lio/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$CancellationPolicy$Companion;
public static final field DEFAULT Lio/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$CancellationPolicy;
public final class io/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$Companion {
public final fun immediateErrorJob (Lio/matthewnelson/kmp/tor/runtime/core/OnFailure;Ljava/lang/String;Ljava/lang/Throwable;Lio/matthewnelson/kmp/tor/runtime/core/UncaughtException$Handler;)Lio/matthewnelson/kmp/tor/runtime/core/EnqueuedJob;
public final fun immediateSuccessJob (Lio/matthewnelson/kmp/tor/runtime/core/OnSuccess;Ljava/lang/String;Ljava/lang/Object;Lio/matthewnelson/kmp/tor/runtime/core/UncaughtException$Handler;)Lio/matthewnelson/kmp/tor/runtime/core/EnqueuedJob;
}

public final class io/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$ExecutionPolicy {
public static final field Companion Lio/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$ExecutionPolicy$Companion;
public static final field DEFAULT Lio/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$ExecutionPolicy;
public final field cancellation Lio/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$ExecutionPolicy$Cancellation;
public synthetic fun <init> (Lio/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$ExecutionPolicy$Cancellation;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
public static final fun Builder (Lio/matthewnelson/kmp/tor/runtime/core/ThisBlock;)Lio/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$ExecutionPolicy;
public fun equals (Ljava/lang/Object;)Z
public fun hashCode ()I
public final fun isDefault ()Z
public fun toString ()Ljava/lang/String;
}

public final class io/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$ExecutionPolicy$Builder {
public final fun cancellation (Lio/matthewnelson/kmp/tor/runtime/core/ThisBlock;)Lio/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$ExecutionPolicy$Builder;
}

public final class io/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$ExecutionPolicy$Cancellation {
public static final field Companion Lio/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$ExecutionPolicy$Cancellation$Companion;
public static final field DEFAULT Lio/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$ExecutionPolicy$Cancellation;
public final field accessibilityOpen Z
public final field allowAttempts Z
public final field isDefault Z
public final field substituteOnErrorWithAttempt Z
public fun <init> ()V
public fun <init> (Z)V
public fun <init> (ZZ)V
public fun <init> (ZZZ)V
public synthetic fun <init> (ZZZILkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun component1 ()Z
public final fun component2 ()Z
public final fun component3 ()Z
public final fun copy (ZZZ)Lio/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$CancellationPolicy;
public static synthetic fun copy$default (Lio/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$CancellationPolicy;ZZZILjava/lang/Object;)Lio/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$CancellationPolicy;
public final field substituteErrorWithAttempt Z
public synthetic fun <init> (ZZZLkotlin/jvm/internal/DefaultConstructorMarker;)V
public fun equals (Ljava/lang/Object;)Z
public fun hashCode ()I
public final fun isDefault ()Z
public fun toString ()Ljava/lang/String;
}

public final class io/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$CancellationPolicy$Companion {
public final class io/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$ExecutionPolicy$Cancellation$Builder {
public field accessibilityOpen Z
public field allowAttempts Z
public field substituteErrorWithAttempt Z
}

public final class io/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$Companion {
public final fun immediateErrorJob (Lio/matthewnelson/kmp/tor/runtime/core/OnFailure;Ljava/lang/String;Ljava/lang/Throwable;Lio/matthewnelson/kmp/tor/runtime/core/UncaughtException$Handler;)Lio/matthewnelson/kmp/tor/runtime/core/EnqueuedJob;
public final fun immediateSuccessJob (Lio/matthewnelson/kmp/tor/runtime/core/OnSuccess;Ljava/lang/String;Ljava/lang/Object;Lio/matthewnelson/kmp/tor/runtime/core/UncaughtException$Handler;)Lio/matthewnelson/kmp/tor/runtime/core/EnqueuedJob;
public final class io/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$ExecutionPolicy$Cancellation$Companion {
}

public final class io/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$ExecutionPolicy$Companion {
public final fun Builder (Lio/matthewnelson/kmp/tor/runtime/core/ThisBlock;)Lio/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$ExecutionPolicy;
}

public final class io/matthewnelson/kmp/tor/runtime/core/EnqueuedJob$State : java/lang/Enum {
Expand Down
Loading
Loading