Dart:将Observable转换为Future,反之亦然?

时间:2018-11-20 13:54:29

标签: dart rxdart

如何将Dart new Handler(Looper.getMainLooper()).postDelayed(new Runnable() { @Override public void run() { edQtd.selectAll(); } }, 500); 转换为Observable,反之亦然?

1 个答案:

答案 0 :(得分:3)

要将Future转换为Observable

  • Future
  • myObservable.first

要将myObservable.firstWhere转换为Future

  • Observable