You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With CSR Yield before applying first Action if deferrable
A deferrable action is one that can wait a main thread post - such as from an async trigger (Worker). Not a UI action.
To allow other actions to queue up, so they can be drained.
Copy file name to clipboardExpand all lines: workflow-core/api/workflow-core.api
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,11 @@ public final class com/squareup/workflow1/BaseRenderContext$DefaultImpls {
35
35
public static synthetic fun renderChild$default (Lcom/squareup/workflow1/BaseRenderContext;Lcom/squareup/workflow1/Workflow;Ljava/lang/Object;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/Object;
36
36
}
37
37
38
+
public final class com/squareup/workflow1/DeferredActionToBeApplied : com/squareup/workflow1/ActionProcessingResult {
39
+
public fun <init> (Lkotlinx/coroutines/Deferred;)V
40
+
public final fun getApplyAction ()Lkotlinx/coroutines/Deferred;
41
+
}
42
+
38
43
public final class com/squareup/workflow1/HandlerBox1 {
39
44
public field handler Lkotlin/jvm/functions/Function1;
40
45
public fun <init> ()V
@@ -161,6 +166,10 @@ public final class com/squareup/workflow1/PropsUpdated : com/squareup/workflow1/
161
166
public static final field INSTANCE Lcom/squareup/workflow1/PropsUpdated;
162
167
}
163
168
169
+
public final class com/squareup/workflow1/RuntimeConfigKt {
170
+
public static final fun shouldDeferFirstAction (Ljava/util/Set;)Z
171
+
}
172
+
164
173
public final class com/squareup/workflow1/RuntimeConfigOptions : java/lang/Enum {
165
174
public static final field CONFLATE_STALE_RENDERINGS Lcom/squareup/workflow1/RuntimeConfigOptions;
166
175
public static final field Companion Lcom/squareup/workflow1/RuntimeConfigOptions$Companion;
@@ -325,6 +334,7 @@ public abstract class com/squareup/workflow1/WorkflowAction {
325
334
public fun <init> ()V
326
335
public abstract fun apply (Lcom/squareup/workflow1/WorkflowAction$Updater;)V
327
336
public fun getDebuggingName ()Ljava/lang/String;
337
+
public fun isDeferrable ()Z
328
338
public fun toString ()Ljava/lang/String;
329
339
}
330
340
@@ -418,8 +428,10 @@ public final class com/squareup/workflow1/Workflows {
418
428
public static final fun action (Lcom/squareup/workflow1/StatefulWorkflow;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;)Lcom/squareup/workflow1/WorkflowAction;
419
429
public static final fun action (Lcom/squareup/workflow1/StatelessWorkflow;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)Lcom/squareup/workflow1/WorkflowAction;
420
430
public static final fun action (Lcom/squareup/workflow1/StatelessWorkflow;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;)Lcom/squareup/workflow1/WorkflowAction;
421
-
public static final fun action (Ljava/lang/String;Lkotlin/jvm/functions/Function1;)Lcom/squareup/workflow1/WorkflowAction;
422
-
public static final fun action (Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;)Lcom/squareup/workflow1/WorkflowAction;
431
+
public static final fun action (Ljava/lang/String;ZLkotlin/jvm/functions/Function1;)Lcom/squareup/workflow1/WorkflowAction;
432
+
public static final fun action (Lkotlin/jvm/functions/Function0;ZLkotlin/jvm/functions/Function1;)Lcom/squareup/workflow1/WorkflowAction;
433
+
public static synthetic fun action$default (Ljava/lang/String;ZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lcom/squareup/workflow1/WorkflowAction;
434
+
public static synthetic fun action$default (Lkotlin/jvm/functions/Function0;ZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lcom/squareup/workflow1/WorkflowAction;
423
435
public static final fun applyTo (Lcom/squareup/workflow1/WorkflowAction;Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
424
436
public static final fun collectToSink (Lkotlinx/coroutines/flow/Flow;Lcom/squareup/workflow1/Sink;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
425
437
public static final fun contraMap (Lcom/squareup/workflow1/Sink;Lkotlin/jvm/functions/Function1;)Lcom/squareup/workflow1/Sink;
0 commit comments