Use BuildState to wait for build setup (#722)
Use BuildState to wait for build setup (#722)

Replace `await new Future(() {})` with waiting for the `BuildState` to
be completed which encompasses all the setup leading up to the first
build.
dart-lang/build,dart-lang/build,dart-lang/build,dart-lang/build