![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <PromiseFuturePair.h>
Public Member Functions | |
PromiseFuturePair () | |
void | setValue (Type val) |
bool | waitFor (std::chrono::milliseconds timeout) |
Type | getValue () |
Template to pair a promise and it's future that can store a value.
|
inline |
Constructor
|
inline |
Retrieved the promised value.
|
inline |
Set the value in promise.
val | The value to be set. |
|
inline |
Wait for promise to be set.
timeout | Timeout for waiting for promise to be set. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0