mojo: Fix ordering of build.

Authored by mpyne on Mar 23 2018, 2:05 AM.

Description

mojo: Fix ordering of build.

The build outputs were all commingled because I mistakenly thought that
calling wait() on a promise would actually wait for the promise to
resolve. This only happens if the I/O loop was not already running.

This is probably for the best as restructuing the code to use ->then()
and ->catch() instead reads better, but it is possible to make ->wait()
do the right thing if you shutdown the I/O loop first.

Testing: A full KF5 run successfully updated and built with this code :)

Details

Committed
mpyneMar 23 2018, 2:05 AM
Parents
R365:8c0f0682bd13: mojo: Get to a basic effort which seems to survive --pretend.
Branches
Unknown
Tags
Unknown