blob: 4c3fb2aee44050a70f5433d01e7b201ca3cf01a8 [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.dispatcher());
loop.Run();
return 0;
}