-1

我有任务,它从服务器获取结果。在将该数据存储到螺栓中的数据库时,.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;
          }
        });
4

1 回答 1

0

找到解决方案,内部方法存在问题,将数据存储到数据库中。

于 2015-03-17T11:26:31.913 回答