overwriteContextData overloads
Declared in <folly/io/async/Request.h>
Replaces the RequestData instance stored under the given token.
void
overwriteContextData(
RequestToken const& token,
std::unique_ptr<RequestData> data,
bool safe = false);
» more...
Replaces the RequestData instance stored under the given identifier.
void
overwriteContextData(
std::string const& val,
std::unique_ptr<RequestData> data,
bool safe = false);
» more...
| Name | Description |
|---|---|
| token | The identifier for the data. |
| data | The data to store. |
| safe | Whether the caller guarantees no concurrent access. |
| val | The string identifier for the data. |