OSDN Git Service
(root)
/
coroid
/
inqubus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
完了、キャンセル、エラーを通知するインタフェース追加
[coroid/inqubus.git]
/
frontend
/
src
/
saccubus
/
worker
/
WorkerListener.java
diff --git
a/frontend/src/saccubus/worker/WorkerListener.java
b/frontend/src/saccubus/worker/WorkerListener.java
index
36f7e1b
..
2749d6d
100644
(file)
--- a/
frontend/src/saccubus/worker/WorkerListener.java
+++ b/
frontend/src/saccubus/worker/WorkerListener.java
@@
-4,7
+4,13
@@
package saccubus.worker;
*
* @author yuki
*/
-public interface WorkerListener<V> {
+public interface WorkerListener<
T,
V> {
void process(V progress);
+
+ void cancelled();
+
+ void done(T result);
+
+ void error(Throwable th);
}