Flutter Engine
 
Loading...
Searching...
No Matches
post_task_sync.cc
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
6
8
9namespace flutter::testing {
10
12 const std::function<void()>& function) {
14 task_runner->PostTask([&] {
15 function();
16 latch.Signal();
17 });
18 latch.Wait();
19}
20
21} // namespace flutter::testing
Dart_NativeFunction function
Definition fuchsia.cc:50
void PostTaskSync(const fml::RefPtr< fml::TaskRunner > &task_runner, const std::function< void()> &function)