*/
@Override
protected void create(final Accessor<StageTwo> whenReady) {
onStageInit();
final CountdownLatch synchronizer = CountdownLatch.create(2, new Command() {
@Override
public void execute() {
install();
onStageLoaded();
whenReady.use(DefaultProvider.this);
}
});
fetchWave(new Accessor<WaveViewData>() {
@Override
public void use(WaveViewData x) {
waveData = x;
synchronizer.tick();
}
});
// Defer everything else, to let the RPC go out.
SchedulerInstance.getMediumPriorityTimer().scheduleDelayed(new Task() {
@Override
public void execute() {
installStatics();
synchronizer.tick();
}
}, 20);
}