asyncprimitive.java
来自「一个很好的微工作流内核」· Java 代码 · 共 33 行
JAVA
33 行
/* * * Copyright (c) 2002 Dragos Manolescu (dam@micro-workflow.com) * * See the LICENSE file for licensing information. */package com.microworkflow.process;import com.microworkflow.execution.AsyncPrimitiveContinuation;import com.microworkflow.execution.Continuation;import com.microworkflow.execution.Performer;public class AsyncPrimitive extends Primitive { public AsyncPrimitive(Performer performer) { super(performer); } public AsyncPrimitive(String targetKey, String resultKey, Performer performer) { super(performer); this.targetKey = targetKey; this.resultKey = resultKey; } public Continuation continuationWith(Continuation continuation) { AsyncPrimitiveContinuation k = continuation.makeAsyncPrimitiveContinuation(this); k.setTargetKey(targetKey); k.setPerformer(performer); k.setResultKey(resultKey); return k; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?