我有任务,它从服务器获取结果。在将该数据存储到螺栓中的数据库时,.continueWith
它被“立即完成”的东西打断了(在调试周期中发现)。
this.someMethod.getStatements()
.continueWith(new Continuation<List<Statement>, Object>() {
@Override public Object then(Task<List<Statement>> task) {
for (Statement statement : task.getResult()) {
saveStatement(statement);
}
return null;
}
});