/*
- * Copyright 2015-present Facebook, Inc.
+ * Copyright 2013-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
}
void start() {
- runner_.add([this]() {
+ runner_.add("Foo", [this]() {
++data;
return std::chrono::seconds(0);
});
}
void start() {
- runner_.add([this]() {
+ runner_.add("FooLongSleep", [this]() {
data.store(1);
return 1000h; // Test would time out if we waited
});