【问题标题】:Bolts framework continueWith does not finish code executionBolts 框架 continueWith 未完成代码执行
【发布时间】:2015-05-19 14:57:09
【问题描述】:

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

【问题讨论】:

    标签: android asynchronous task bolts-framework


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-03-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-24
      • 1970-01-01
      • 2012-02-08
      • 2014-10-27
      相关资源
      最近更新 更多