blob: aa7fbff023ca62d9a3acfd02d1560f6fb0c5e3ca [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/async-loop/cpp/loop.h>
#include <lib/async-loop/default.h>
#include <lib/trace-provider/provider.h>
#include "app.h"
int main(int argc, const char** argv) {
// kAsyncLoopConfigAttachToCurrentThread is currently required by
// component::Outgoing() which can currently only construct using
// async_get_default_dispatcher().
async::Loop loop(&kAsyncLoopConfigAttachToCurrentThread);
trace::TraceProviderWithFdio trace_provider(loop.dispatcher());
App app;
loop.Run();
return 0;
}