folly::RequestContext::overwriteContextData

overwriteContextData overloads

Synopses

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...

Parameters

NameDescription
tokenThe identifier for the data.
dataThe data to store.
safeWhether the caller guarantees no concurrent access.
valThe string identifier for the data.