DEENESPTFRRUARHIKOZHNL

क्लास ara::core::Future< void, E >

[SWS_CORE_06221] Upstream: RS_AP_00130

template <typename E> class Future< void, E > final {...};

Specialization of class Future for "void" values. The implementation shall flag the condition: ( E != ara::core::ErrorCode ) as a compile error.

Header-Datei#include "ara/core/future.h"
Forwarding-Header#include "ara/core/core_fwd.h"
Scopenamespace ara::core

उपयोगकर्ता गाइडएआई जनित

रिटर्न वैल्यू के बिना एसिंक्रोनस ऑपरेशन के पूरा होने की प्रतीक्षा करने और एरर स्टेटस को पुनः प्राप्त करने में सक्षम बनाता है।
एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: e943c154e07e उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

रिटर्न वैल्यू के बिना एसिंक्रोनस ऑपरेशन के पूरा होने की प्रतीक्षा करने और एरर स्टेटस को पुनः प्राप्त करने में सक्षम बनाता है।

क्लास ara::core::Future<void, E> AUTOSAR Adaptive [SWS_CORE_06236] में रिटर्न वैल्यू के बिना ऑपरेशंस के एसिंक्रोनस सिंक्रोनाइज़ेशन और त्रुटि जांच को सक्षम बनाती है। एक नॉन-कॉपीएबल प्रकार के रूप में, यह पूरा होने की प्रतीक्षा करने के साथ-साथ ara::core::Result<void, E> [SWS_CORE_06236] के रूप में एक्सेप्शन-सेफ परिणाम पुनर्प्राप्ति या कंटिन्यूएशन फ़ंक्शन [SWS_CORE_06231] के माध्यम से एसिंक्रोनस आगे की प्रोसेसिंग की अनुमति देती है। परिणाम प्राप्त करने के बाद, शेयर्ड स्टेट अमान्य हो जाती है, जिससे वैध स्थिति के बिना बाद के कॉल्स उल्लंघन का प्रतिनिधित्व करते हैं [SWS_CORE_06236]।

संदर्भ

टेम्प्लेट क्लास स्पेशलाइज़ेशन ara::core::Future<void, E> AUTOSAR Adaptive में एक एसिंक्रोनस ऑपरेशन के रिसीवर एंड का प्रतिनिधित्व करती है, जो सफल समापन पर कोई वैल्यू नहीं लौटाती है, बल्कि विशुद्ध रूप से इवेंट के घटित होने या हुई त्रुटि का संकेत देती है। क्लास विवरण के अनुसार, कार्यान्वयन को स्थिति E != ara::core::ErrorCode को कंपाइल एरर के साथ समाप्त करना चाहिए। क्लास आमतौर पर एक संबंधित ara::core::Promise के साथ इंटरैक्ट करती है, जो शेयर्ड स्टेट को पॉप्युलेट करता है [SWS_CORE_06236], साथ ही कंटिन्यूएशन फ़ंक्शंस को रजिस्टर करते समय एसिंक्रोनस निष्पादन संदर्भों के साथ भी [SWS_CORE_06237]।

जीवनचक्र

ara::core::Future<void, E> के इंस्टेंस विशुद्ध रूप से मूव सिमेंटिक्स ऑब्जेक्ट्स हैं: कॉपी कंस्ट्रक्टर [SWS_CORE_06234] और कॉपी असाइनमेंट ऑपरेटर [SWS_CORE_06235] हटा दिए गए हैं (delete)। डिफ़ॉल्ट कंस्ट्रक्टर के माध्यम से बनाए गए ऑब्जेक्ट में कोई शेयर्ड स्टेट नहीं होती है और यह std::future [SWS_CORE_06222] के समान व्यवहार करता है। मूव कंस्ट्रक्शन [SWS_CORE_06223] या मूव असाइनमेंट [SWS_CORE_06225] के माध्यम से एक इंस्टेंस किसी अन्य इंस्टेंस से शेयर्ड स्टेट का स्वामित्व प्राप्त करता है।

लाइफ़साइकल मुख्य रूप से शेयर्ड स्टेट की स्थिति से निर्धारित होता है। मेथड valid() के माध्यम से यह जांचा जा सकता है कि क्या इंस्टेंस किसी शेयर्ड स्टेट से जुड़ा है और इस प्रकार उपयोग योग्य है [SWS_CORE_06227]। जैसे ही परिणाम GetResult() [SWS_CORE_06236] या get() [SWS_CORE_06226] के माध्यम से प्राप्त किया जाता है या then() [SWS_CORE_06231] के माध्यम से एक कंटिन्यूएशन पंजीकृत किया जाता है, Future ऑब्जेक्ट अपनी शेयर्ड स्टेट खो देता है और valid(), false लौटाता है। डिस्ट्रक्टर शेष शेयर्ड स्टेट को रिलीज़ करता है [SWS_CORE_06233]। कंकरेंसी के संबंध में, चेकिंग और विनाश ऑपरेशंस जैसे valid() [SWS_CORE_06227], is_ready() [SWS_CORE_06232] और डिस्ट्रक्टर [SWS_CORE_06233] थ्रेड-सेफ हैं, जबकि स्टेट-मॉडिफाइंग ऑपरेशंस जैसे GetResult() [SWS_CORE_06236], get() [SWS_CORE_06226] और वेटिंग फ़ंक्शंस [SWS_CORE_06228] थ्रेड-सेफ नहीं हैं।

future_states Ungueltig अमान्य (valid() == false) Ausstehend मान्य / लंबित (valid() == true, is_ready() == false) Ungueltig->Ausstehend Move-Konstruktion / Zuweisung Ausstehend->Ungueltig then() Bereit मान्य / तैयार (valid() == true, is_ready() == true) Ausstehend->Bereit Promise setzt Wert / Fehler Bereit->Ungueltig GetResult() / get() Bereit->Ungueltig then()

स्टेट डायग्राम: ara::core::Future<void, E> के स्टेट ट्रांज़िशन और वैधता। स्रोत: [SWS_CORE_06222], [SWS_CORE_06226], [SWS_CORE_06227], [SWS_CORE_06231], [SWS_CORE_06232], [SWS_CORE_06233], [SWS_CORE_06236]

उपयोग पथ

सिंक्रोनस उपयोग पथ में, एक कंज्यूमर एसिंक्रोनस ऑपरेशन के पूरा होने की प्रतीक्षा करता है। is_ready() के साथ लो-ब्लॉकिंग तरीके से यह क्वेरी की जा सकती है कि क्या कोई वैल्यू या त्रुटि मौजूद है [SWS_CORE_06232]। वैकल्पिक रूप से, wait() के माध्यम से ब्लॉकिंग प्रतीक्षा की जा सकती है [SWS_CORE_06228], या wait_for() [SWS_CORE_06229] और wait_until() [SWS_CORE_06230] के माध्यम से समय-सीमित। यदि परिणाम उपलब्ध है, तो वैल्यू पुनर्प्राप्ति प्राथमिकता के रूप में एक्सेप्शन-सेफ तरीके से GetResult() के माध्यम से की जाती है, जिससे ara::core::Result<void, E> लौटाया जाता है [SWS_CORE_06236]।

एसिंक्रोनस पथ में, मेथड then() एक कंटिन्यूएशन फ़ंक्शन के पंजीकरण की अनुमति देती है, जो परिणाम उपलब्ध होते ही निष्पादित होता है [SWS_CORE_06231]। यहां वैकल्पिक रूप से एक निष्पादन संदर्भ (एग्ज़ीक्यूटर) पास किया जा सकता है [SWS_CORE_06237]। कंटिन्यूएशन Result<void, E> को Rvalue के रूप में स्वीकार करता है। then() का रिटर्न टाइप स्वचालित रूप से नेस्टेड Future या Result प्रकारों को अनपैक (Unwrapping) करता है [SWS_CORE_06231]।

GetResult के माध्यम से परिणाम की सिंक्रोनस पुनर्प्राप्तिएप्लिकेशनFutureSharedStatevalid()trueis_ready()स्थिति जांचेंtrue (परिणाम या त्रुटि तैयार)trueGetResult()std::move(Ergebnis)Result<void, E>शेयर्ड स्टेट को अमान्य सेट करें (valid() == false)Result<void, E>

सीक्वेंस डायग्राम: GetResult के माध्यम से परिणाम पुनर्प्राप्ति के लिए सिंक्रोनस क्रम। स्रोत: [SWS_CORE_06227], [SWS_CORE_06228], [SWS_CORE_06232], [SWS_CORE_06236]

त्रुटि परिदृश्य

यदि किसी अमान्य इंस्टेंस (valid() == false) पर स्थिति-निर्भर ऑपरेशन (जैसे GetResult(), is_ready(), wait(), wait_for(), wait_until() या then()) को कॉल किया जाता है, तो यह प्रीकंडीशन का उल्लंघन होता है, जिसे FutureInvalidViolation के रूप में माना जाता है [SWS_CORE_06228], [SWS_CORE_06229], [SWS_CORE_06230], [SWS_CORE_06231], [SWS_CORE_06232], [SWS_CORE_06236], [SWS_CORE_06237]। इसके बजाय अमान्य इंस्टेंस पर get() के कॉल पर, एरर कोड kNoState के साथ एक FutureException ट्रिगर किया जाता है [SWS_CORE_06226]; C++ अपवाद अक्षम होने पर get() ओवरलोड रिज़ॉल्यूशन में भाग नहीं लेता है [SWS_CORE_06226]।

यदि संबंधित Promise नष्ट हो गया है या उसने कोई परिणाम या स्पष्ट त्रुटि सेट किए बिना शेयर्ड स्टेट को छोड़ दिया है, तो त्रुटि कोड FutureErrc::kBrokenPromise [SWS_CORE_00400] के अनुसार शेयर्ड स्टेट में संग्रहीत किया जाता है [SWS_CORE_06226], [SWS_CORE_06236]। इसे GetResult() द्वारा Result<void, E> में त्रुटि के रूप में लौटाया जाता है [SWS_CORE_06236]। यदि then() में पंजीकृत कोई कंटिन्यूएशन ऐसा अपवाद उत्पन्न करता है जो उल्लंघन को लागू नहीं करता है, तो यह FutureContinuationHasThrownViolation [SWS_CORE_06231], [SWS_CORE_06237] की ओर ले जाता है।

यह गाइड पूरी तरह से रिलीज़ R25-11 में ara::core::Future<void, E> के AUTOSAR विनिर्देश पर आधारित है।

सदस्य मानचित्र

कंस्ट्रक्टर और डिस्ट्रक्टर

2

ऑपरेटर

1

क्लास आरेख

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__core__Future__void__E__740 Future< void, E > + Future() + operator=() + ~Future() + GetResult() + get() + is_ready() + then() + valid() + wait() + wait_for() + wait_until()

विवरण दृश्य

रूपरेखा में कोई प्रविष्टि चुनें।

कंस्ट्रक्टर और डिस्ट्रक्टर

Future फ़ंक्शन 3

Default constructor This function shall behave the same as the corresponding std::future function. ≙ std::future

ओवरलोड Future 3
Future () noexcept; SWS_CORE_06222
Future (Future &&other) noexcept; SWS_CORE_06223
Future (const Future &other)=delete; SWS_CORE_06234
~Future फ़ंक्शन

Destructor for Future objects. Abandons any shared state

~Future () noexcept;

मेथड

get फ़ंक्शन

Returns nothing. This function shall behave the same as the corresponding std::future function. Part of the behavior taken from the std::future is that after a call to this function the Future is not valid anymore (valid() == false). ≙ std::future

void get () noexcept(false);
GetResult फ़ंक्शन

Get the result. Similar to Future::get(), this call blocks until the value or an error is available. However, this call will never throw an exception. Part of the behavior taken from Future::get() is that after a call to this function the Future is not valid anymore (valid() == false).

Result< void, E > GetResult () noexcept(std::is_nothrow_move_ constructible< E >::value);
is_ready फ़ंक्शन

Return whether the asynchronous operation has finished. If this function returns true, get(), Get Result() and the wait calls are guaranteed not to block.

bool is_ready () const noexcept;
then फ़ंक्शन 2

Create a new Future with the content returned by func when passed the Result of this Future. func may be called in the context of this call or in the context of Promise::set_value() or Promise::SetError() or somewhere else. valid() == false on the original future object immediately after it returns. The Callable input argument "func" takes a Result<void,E> object as parameter. This will be the Result obtained via GetResult from the Future instance itself, on which .then() is being called. The Result is passed to func as an rvalue expression. The return type of then depends on the return type of func (aka continuation). Let U be the return type of the continuation (i.e. a type equivalent to std::invoke_result_ t<std::decay_t<F>,Result<void,E>>). • If U is Future<T2,E2> for some types T2, E2, then the return type of then() is Future<T2,E2>. This is known as implicit Future unwrapping. • If U is Result<T2,E2> for some types T2, E2, then the return type of then() is Future<T2,E2>. This is known as implicit Result unwrapping. • Otherwise it is Future<U,E>. Continuations that are registered with Future::then() are registered in the Future F that Future::then() returns. No such continuation shall be executed after the destructor of the Future F returns. A continuation that is already being executed shall run to completion. Note: that means that the destructor of Future might block until the currently running continuation has been completed. The continuation shall not throw, except for the purpose of implementing a Violation. Note: Exceptions can be used within the continuation, however if they do not realize a Violation, they must not escape the continuation. Note: Users who need to propagate information from closures’ exceptions should translate them to an error and return an ara::core::Result or ara::core::Future from the continuation with the error stored in it. ≙ std::invoke_result_

ओवरलोड then 2
template <typename F> auto then (F &&func) noexcept -> Future< <see below> >; SWS_CORE_06231
template <typename F, typename ExecutorT> auto then (F &&func, ExecutorT &&executor) noexcept -> Future< <see below> >; SWS_CORE_06237
valid फ़ंक्शन

Checks if the Future is valid, i.e. if it has a shared state.

bool valid () const noexcept;
wait फ़ंक्शन

Wait for a value or an error to be available. This function shall behave the same as the corresponding std::future function ≙ std::future

void wait () const noexcept;
wait_for फ़ंक्शन

Wait for the given period, or until a value or an error is available. This function shall behave the same as the corresponding std::future function ≙ std::future

template <typename Rep, typename Period> FutureStatus wait_for (const std::chrono::duration< Rep, Period > &timeoutDuration) const noexcept;
wait_until फ़ंक्शन

Wait until the given time, or until a value or an error is available. This function shall behave the same as the corresponding std::future function. ≙ std::future

template <typename Clock, typename Duration> FutureStatus wait_until (const std::chrono::time_point< Clock, Duration > &deadline) const noexcept;

ऑपरेटर

operator= फ़ंक्शन 2

Move assign from another instance. This function shall behave the same as the corresponding std::future function. ≙ std::future

ओवरलोड = 2
Future & operator= (Future &&other) noexcept; SWS_CORE_06225
Future & operator= (const Future &other)=delete; SWS_CORE_06235

मेथड का प्रलेखन

फ़ंक्शन Future [SWS_CORE_06222] Upstream: RS_AP_00130

Future () noexcept;

Default constructor This function shall behave the same as the corresponding std::future function.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Future< void, E >
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06222
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06222@rel:R25-11#aceb1c12
Content hash
aceb1c12
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06222
Status: valid/unmigrated Version: rel:R25-11#5a060501 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06222@rel:R25-11#5a060501
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#1afcba652026-09-30
  • R19-11rel:R19-11#0daa41512026-10-14
  • R20-11rel:R20-11#2b96cd1f2026-10-14
  • R21-11rel:R21-11#2b96cd1f2026-10-14
  • R22-11rel:R22-11#769923512026-10-14
  • R23-11rel:R23-11#5dfa683d2026-10-14
  • R24-11rel:R24-11#5c2585642026-10-14
  • R25-11rel:R25-11#5a0605012026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन Future [SWS_CORE_06223] Upstream: RS_AP_00130

Future (Future &&other) noexcept;

Move constructor from another instance This function shall behave the same as the corresponding std::future function.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Future< void, E >
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
otherthe other instance

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06223
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06223@rel:R25-11#8d9c522c
Content hash
8d9c522c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06223
Status: valid/unmigrated Version: rel:R25-11#d8ab302b Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06223@rel:R25-11#d8ab302b
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#c4ca9e912026-09-30
  • R19-11rel:R19-11#a14b593d2026-10-14
  • R20-11rel:R20-11#29b853f02026-10-14
  • R21-11rel:R21-11#29b853f02026-10-14
  • R22-11rel:R22-11#0b366b7e2026-10-14
  • R23-11rel:R23-11#4e1158ee2026-10-14
  • R24-11rel:R24-11#43ec03e42026-10-14
  • R25-11rel:R25-11#d8ab302b2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन Future [SWS_CORE_06234] Upstream: RS_AP_00130

Future (const Future &other)=delete;

Copy constructor shall be disabled

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Future< void, E >

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06234
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06234@rel:R25-11#e0baaf26
Content hash
e0baaf26
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06234
Status: valid/unmigrated Version: rel:R25-11#56462c5d Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06234@rel:R25-11#56462c5d
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#f81e62902026-09-30
  • R19-11rel:R19-11#544640f62026-10-14
  • R20-11rel:R20-11#d96a22e02026-10-14
  • R21-11rel:R21-11#ea4dbae52026-10-14
  • R22-11rel:R22-11#302289e52026-10-14
  • R23-11rel:R23-11#8c086a182026-10-14
  • R24-11rel:R24-11#7c2e887e2026-10-14
  • R25-11rel:R25-11#56462c5d2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन GetResult [SWS_CORE_06236] Upstream: RS_AP_00130

Result< void, E > GetResult () noexcept(std::is_nothrow_move_ constructible< E >::value);

Get the result. Similar to Future::get(), this call blocks until the value or an error is available. However, this call will never throw an exception. Part of the behavior taken from Future::get() is that after a call to this function the Future is not valid anymore (valid() == false).

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Future< void, E >
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitnot thread-safe
Verletzungen (Violations)FutureInvalidVio- If the Future is invalid ( valid ==FALSE ) lation

Rückgabewert

TypBeschreibung
Result< void, E >a Result as std::move(result from the shared state) with either a value or an error that has been put into the corresponding Promise. This can be because either: • explicit setting of the Error via Promise::SetError / Promise::Set Result or • the Promise was broken, meaning the shared state was abandoned by the corresponding Promise. Then the error is kBrokenPromise as defined in [SWS_CORE_00400]

Fehler

FehlercodeBeschreibung
FutureErrc::kBrokenPromiserollback_semantics if the Promise was broken, meaning the shared state was abandoned by the corresponding Promise.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06236
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06236@rel:R25-11#14220942
Content hash
14220942
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06236
Status: valid/unmigrated Version: rel:R25-11#932914cb Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06236@rel:R25-11#932914cb
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#7184bdc92026-09-30
  • R19-11rel:R19-11#541daac72026-10-14
  • R20-11rel:R20-11#3adb03532026-10-14
  • R21-11rel:R21-11#3adb03532026-10-14
  • R22-11rel:R22-11#4366d27f2026-10-14
  • R23-11rel:R23-11#f033d7132026-10-14
  • R24-11rel:R24-11#243860772026-10-14
  • R25-11rel:R25-11#932914cb2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन get [SWS_CORE_06226] Upstream: RS_AP_00130

void get () noexcept(false);

Returns nothing. This function shall behave the same as the corresponding std::future function. Part of the behavior taken from the std::future is that after a call to this function the Future is not valid anymore (valid() == false).

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 195e9e272b48 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

विशेषज्ञता ara::core::Future<void, E> का सदस्य फ़ंक्शन get बिना रिटर्न मान ([SWS_CORE_06226]) के एक एसिंक्रोनस ऑपरेशन के परिणाम की प्रतीक्षा करने का कार्य करता है। यह std::future के संबंधित फ़ंक्शन की तरह व्यवहार करता है और कॉलर को तब तक ब्लॉक करता है जब तक कि परिणाम या कोई त्रुटि उपलब्ध न हो जाए ([SWS_CORE_06226], [SWS_CORE_00336])। कॉल के बाद, Future इंस्टेंस अपनी वैधता खो देता है, जिससे valid() == false लागू होता है ([SWS_CORE_06226])।

फ़ंक्शन गैर-अपवाद-सुरक्षित (not exception safe) घोषित किया गया है ([SWS_CORE_06226])। यदि लिंक किए गए Promise में कोई त्रुटि संग्रहीत की गई थी, तो एक संबंधित अपवाद ट्रिगर होता है ([SWS_CORE_06226])। यदि साझा स्थिति को समय से पहले छोड़ दिया गया था, तो [SWS_CORE_00400] के अनुसार त्रुटि कोड kBrokenPromise उत्पन्न होता है ([SWS_CORE_06226])। यदि get पहले से ही अमान्य इंस्टेंस पर निष्पादित किया जाता है, तो फ़ंक्शन त्रुटि कोड kNoState ([SWS_CORE_06226]) के साथ एक FutureException फेंकता है।

समवर्तीता के संबंध में, विधि थ्रेड-सुरक्षित नहीं है (not thread-safe) ([SWS_CORE_06226])। इसलिए एक ही ऑब्जेक्ट पर समानांतर एक्सेस के लिए बाहरी सिंक्रोनाइज़ेशन की आवश्यकता होती है। इसके अलावा, यदि कंपाइलर टूलचेन ([SWS_CORE_06226]) में C++ अपवाद अक्षम हैं, तो फ़ंक्शन ओवरलोड रिज़ॉल्यूशन में भाग नहीं लेता है।

संबंधित फ़ंक्शनों के संयोजन में, [SWS_CORE_00332] (is_ready) यह सुनिश्चित करता है कि यदि ऑपरेशन पहले ही पूरा हो चुका है, तो get के ब्लॉक न होने की गारंटी है। अपवादों के बिना संदर्भों के लिए, AUTOSAR एक विकल्प के रूप में [SWS_CORE_00336] (GetResult) प्रदान करता है, जो अपवाद फेंकने के बजाय परिणाम प्रकार के माध्यम से त्रुटियों की रिपोर्ट करता है।

यह पाठ एक AI द्वारा जनरेट किया गया था और यह मार्गदर्शन के रूप में कार्य करता है; आधिकारिक AUTOSAR विनिर्देश है।

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Future< void, E >
Exception-Sicherheitnot exception safe
Thread-Sicherheitnot thread-safe

Rückgabewert

TypBeschreibung
None

Exceptions

Any exception of the type associated with the error that has been put into the corresponding Promise. This can be because either: • explicit setting of the Error via: Promise::SetError(E&&) Promise::SetError(const E&) / Promise::SetResult(const Result<T, E>&) Promise::SetResult(Result <T, E>&&) • the Promise was broken, meaning the shared state was abandoned by the corresponding Promise. Then the error is kBrokenPromise as defined in [SWS_CORE_00400]. FutureException in case the Future is invalid. The contained ErrorCode is kNoState

Hinweise: This function shall not participate in overload resolution when C++ exceptions are disabled in the compiler toolchain

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06226
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06226@rel:R25-11#cadee95b
Content hash
cadee95b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06226
Status: valid/unmigrated Version: rel:R25-11#6ad2ffae Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06226@rel:R25-11#6ad2ffae
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#40fe52062026-09-30
  • R19-11rel:R19-11#877183822026-10-14
  • R20-11rel:R20-11#561b11012026-10-14
  • R21-11rel:R21-11#cd0d4bbb2026-10-14
  • R22-11rel:R22-11#41a0b49a2026-10-14
  • R23-11rel:R23-11#2c6048102026-10-14
  • R24-11rel:R24-11#2f0d210c2026-10-14
  • R25-11rel:R25-11#6ad2ffae2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन is_ready [SWS_CORE_06232] Upstream: RS_AP_00130

bool is_ready () const noexcept;

Return whether the asynchronous operation has finished. If this function returns true, get(), Get Result() and the wait calls are guaranteed not to block.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Future< void, E >
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)FutureInvalidVio- If the Future is invalid (valid returns false) lation

Rückgabewert

TypBeschreibung
booltrue if the Future contains a value or an error, false otherwise

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06232
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06232@rel:R25-11#7b0c126f
Content hash
7b0c126f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06232
Status: valid/unmigrated Version: rel:R25-11#5186dad5 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06232@rel:R25-11#5186dad5
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4784afca2026-09-30
  • R19-11rel:R19-11#b80f30db2026-10-14
  • R20-11rel:R20-11#e1d9ba9b2026-10-14
  • R21-11rel:R21-11#6a9c97832026-10-14
  • R22-11rel:R22-11#d2f71e3d2026-10-14
  • R23-11rel:R23-11#26d4877a2026-10-14
  • R24-11rel:R24-11#7af5dd2e2026-10-14
  • R25-11rel:R25-11#5186dad52026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन operator= [SWS_CORE_06225] Upstream: RS_AP_00130

Future & operator= (Future &&other) noexcept;

Move assign from another instance. This function shall behave the same as the corresponding std::future function.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Future< void, E >
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
otherthe other instance

Rückgabewert

TypBeschreibung
Future &*this

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06225
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06225@rel:R25-11#41dac3c3
Content hash
41dac3c3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06225
Status: valid/unmigrated Version: rel:R25-11#9232ee22 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06225@rel:R25-11#9232ee22
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#354308df2026-09-30
  • R19-11rel:R19-11#7ddd3a9d2026-10-14
  • R20-11rel:R20-11#309f3c9c2026-10-14
  • R21-11rel:R21-11#8d4849c42026-10-14
  • R22-11rel:R22-11#9833c73f2026-10-14
  • R23-11rel:R23-11#b37e21992026-10-14
  • R24-11rel:R24-11#9232ee222026-10-14
  • R25-11rel:R25-11#9232ee222026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन operator= [SWS_CORE_06235] Upstream: RS_AP_00130

Future & operator= (const Future &other)=delete;

Copy assignment operator shall be disabled

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Future< void, E >

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06235
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06235@rel:R25-11#5b683cd1
Content hash
5b683cd1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06235
Status: valid/unmigrated Version: rel:R25-11#2ab3479c Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06235@rel:R25-11#2ab3479c
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#7aa2f7952026-09-30
  • R19-11rel:R19-11#e583d7bd2026-10-14
  • R20-11rel:R20-11#d21de51e2026-10-14
  • R21-11rel:R21-11#d21de51e2026-10-14
  • R22-11rel:R22-11#31fde6ef2026-10-14
  • R23-11rel:R23-11#de56c2ed2026-10-14
  • R24-11rel:R24-11#fd4c55142026-10-14
  • R25-11rel:R25-11#2ab3479c2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन then [SWS_CORE_06231] Upstream: RS_AP_00130

template <typename F> auto then (F &&func) noexcept -> Future< <see below> >;

Create a new Future with the content returned by func when passed the Result of this Future. func may be called in the context of this call or in the context of Promise::set_value() or Promise::SetError() or somewhere else. valid() == false on the original future object immediately after it returns. The Callable input argument "func" takes a Result<void,E> object as parameter. This will be the Result obtained via GetResult from the Future instance itself, on which .then() is being called. The Result is passed to func as an rvalue expression. The return type of then depends on the return type of func (aka continuation). Let U be the return type of the continuation (i.e. a type equivalent to std::invoke_result_ t<std::decay_t<F>,Result<void,E>>). • If U is Future<T2,E2> for some types T2, E2, then the return type of then() is Future<T2,E2>. This is known as implicit Future unwrapping. • If U is Result<T2,E2> for some types T2, E2, then the return type of then() is Future<T2,E2>. This is known as implicit Result unwrapping. • Otherwise it is Future<U,E>. Continuations that are registered with Future::then() are registered in the Future F that Future::then() returns. No such continuation shall be executed after the destructor of the Future F returns. A continuation that is already being executed shall run to completion. Note: that means that the destructor of Future might block until the currently running continuation has been completed. The continuation shall not throw, except for the purpose of implementing a Violation. Note: Exceptions can be used within the continuation, however if they do not realize a Violation, they must not escape the continuation. Note: Users who need to propagate information from closures’ exceptions should translate them to an error and return an ara::core::Result or ara::core::Future from the continuation with the error stored in it.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 161f9bad96ab उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

उपयोग

विधि then एक ara::core::Future<void, E> इंस्टेंस [SWS_CORE_06231] पर एक अनुवर्ती ऑपरेशन (कंटिन्यूएशन func) पंजीकृत करती है। कॉल करने योग्य ऑब्जेक्ट प्रकार Result<void, E> के Rvalue अभिव्यक्ति के रूप में ऑपरेशन के परिणाम को स्वीकार करता है, जो आंतरिक रूप से GetResult [SWS_CORE_06231] के माध्यम से प्रदान किया जाता है। func का आह्वान then के संदर्भ में सिंक्रोनस रूप से या Promise::set_value(), Promise::SetError() के संदर्भ में या कहीं और एसिंक्रोनस रूप से हो सकता है [SWS_CORE_06231]।

then से लौटने के तुरंत बाद, मूल Future अमान्य (valid() == false) [SWS_CORE_06231] हो जाता है। रिटर्न प्रकार कंटिन्युएशन के रिटर्न प्रकार U के अनुसार अनुकूलित होता है:

  • यदि func एक Future<T2, E2> लौटाता है, तो अंतर्निहित अनपैकिंग होती है और then Future<T2, E2> [SWS_CORE_06231] लौटाता है।
  • यदि func एक Result<T2, E2> लौटाता है, तो यह भी अंतर्निहित रूप से Future<T2, E2> [SWS_CORE_06231] में अनपैक हो जाता है।
  • अन्य सभी मामलों में, रिटर्न प्रकार Future<U, E> [SWS_CORE_06231] होता है।

त्रुटि प्रबंधन और सीमा शर्तें

इस फ़ंक्शन [SWS_CORE_06231] के लिए मानकीकृत त्रुटि कोड निर्दिष्ट नहीं हैं। विधि को noexcept के रूप में घोषित किया गया है, लेकिन यह दो उल्लंघनों (Violations) को परिभाषित करती है:

  • FutureInvalidViolation: तब घटित होता है जब विधि को किसी अमान्य Future पर कॉल किया जाता है (यदि valid() false लौटाता है) [SWS_CORE_06231]।
  • FutureContinuationHasThrownViolation: तब घटित होता है जब कंटिन्युएशन कोई ऐसा अपवाद फेंकता है जो उल्लंघन को लागू नहीं करता है [SWS_CORE_06231]। इसके बजाय कंटिन्युएशन में त्रुटियों को Result या Future [SWS_CORE_06231] में पैक करके वापस किया जाना चाहिए।

समवर्तीता और परस्पर क्रिया

विधि थ्रेड-सुरक्षित नहीं है (not thread-safe) [SWS_CORE_06231]। लौटाए गए Future के डिस्ट्रक्टर से लौटने के बाद, कोई भी पंजीकृत कंटिन्युएशन निष्पादित नहीं की जाएगी; हालाँकि, पहले से चल रहा निष्पादन पूरा हो जाएगा, जिससे डिस्ट्रक्टर ब्लॉक हो सकता है [SWS_CORE_06231]। जबकि [SWS_CORE_06231] Future<void, E> पर लागू होता है, [SWS_CORE_00331] टाइप किए गए Futures Future<T, E> के वेरिएंट का वर्णन करता है और [SWS_CORE_06237] स्पष्ट निष्पादक (Executor) के साथ ओवरलोड का वर्णन करता है।

यह पाठ AUTOSAR विनिर्देश के आधार पर एक AI द्वारा तैयार किया गया था।

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Future< void, E >
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe
Verletzungen (Violations)FutureInvalidVio- If the Future is invalid (valid returns false) lation FutureContinua- If the continuation throws an exception tionHasThrownVio- lation

Parameter (in)

ParameterBeschreibung
funca callable to register

Rückgabewert

TypBeschreibung
Future< <see below> >a new Future instance for the result of the continuation

Fehler

FehlercodeBeschreibung
This function does not specify any standardized errors.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06231
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06231@rel:R25-11#a559d95d
Content hash
a559d95d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06231
Status: valid/unmigrated Version: rel:R25-11#21619af0 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06231@rel:R25-11#21619af0
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#9e67efce2026-09-30
  • R19-11rel:R19-11#b5665d0f2026-10-14
  • R20-11rel:R20-11#0cd22f812026-10-14
  • R21-11rel:R21-11#f603398f2026-10-14
  • R22-11rel:R22-11#b27b86212026-10-14
  • R23-11rel:R23-11#2173d0cf2026-10-14
  • R24-11rel:R24-11#273db5c82026-10-14
  • R25-11rel:R25-11#21619af02026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन then [SWS_CORE_06237] Upstream: RS_AP_00130

template <typename F, typename ExecutorT> auto then (F &&func, ExecutorT &&executor) noexcept -> Future< <see below> >;

Create a new Future with the content returned by func when passed the Result of this Future. func is called in the context of the provided execution context executor. valid() == false on the original future object immediately after it returns. The Callable input argument "func" takes a Result<void,E> object as parameter. This will be the Result obtained via GetResult from the Future instance itself, on which .then() is being called. The Result is passed to func as an rvalue expression. The return type of then depends on the return type of func (aka continuation). Let U be the return type of the continuation (i.e. a type equivalent to std::invoke_result_ t<std::decay_t<F>,Result<void,E>>). • If U is Future<T2,E2> for some types T2, E2, then the return type of then() is Future<T2,E2>. This is known as implicit Future unwrapping. • If U is Result<T2,E2> for some types T2, E2, then the return type of then() is Future<T2,E2>. This is known as implicit Result unwrapping. • Otherwise it is Future<U,E>. Continuations that are registered with Future::then() are registered in the Future F that Future::then() returns. No such continuation shall be executed after the destructor of the Future F returns. A continuation that is already being executed shall run to completion. Note: that means that the destructor of Future might block until the currently running continuation has been completed. The continuation shall not throw, except for the purpose of implementing a Violation. Note: Exceptions can be used within the continuation, however if they do not realize a Violation, they must not escape the continuation. Note: Users who need to propagate information from closures’ exceptions should translate them to an error and return an ara::core::Result or ara::core::Future from the continuation with the error stored in it.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 96d3b0e93b60 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

फ़ंक्शन then निर्दिष्ट निष्पादन संदर्भ executor [SWS_CORE_06237] में निष्पादन के लिए ara::core::Future<void, E> के एक इंस्टेंस पर एक कॉल करने योग्य कन्टीन्यूएशन ऑब्जेक्ट (Continuation) func पंजीकृत करता है। then की वापसी के तुरंत बाद, कॉलिंग Future इंस्टेंस अपनी वैधता खो देता है, जिससे कि valid() == false हो जाता है [SWS_CORE_06237]। कन्टीन्यूएशन को मूल Future इंस्टेंस का परिणाम Rvalue एक्सप्रेशन के रूप में Result<void, E> के रूप में पास किया जाता है [SWS_CORE_06237]। रिटर्न मान के रूप में, कॉल एक नया Future इंस्टेंस लौटाता है, जिसमें कन्टीन्यूएशन के Future<T2, E2> या Result<T2, E2> प्रकार के रिटर्न प्रकार अंतर्निहित रूप से Future<T2, E2> में अनपैक हो जाते हैं; अन्यथा एक Future<U, E> वापस कर दिया जाता है [SWS_CORE_06237]।

समवर्तीता (concurrency) और जीवनचक्र के संदर्भ में, फ़ंक्शन को गैर-थ्रेड-सुरक्षित (not thread-safe) के रूप में निर्दिष्ट किया गया है [SWS_CORE_06237]। निरंतरता (continuation) नए लौटाए गए Future में पंजीकृत की जाती है। इस नए Future के डिस्ट्रक्टर के वापस लौटने के बाद, कोई और निरंतरता निष्पादित नहीं की जानी चाहिए; हालाँकि, पहले से निष्पादन की स्थिति में मौजूद निरंतरता पूरी तरह से समाप्त होती है, जिसके कारण Future का डिस्ट्रक्टर ब्लॉक हो सकता है [SWS_CORE_06237]।

फ़ंक्शन किसी मानकीकृत त्रुटि कोड को घोषित नहीं करता है और इसे noexcept के रूप में परिभाषित किया गया है [SWS_CORE_06237]। यदि इसे किसी अमान्य Future इंस्टेंस पर कॉल किया जाता है, तो उल्लंघन FutureInvalidViolation मौजूद होता है [SWS_CORE_06237]। यदि निरंतरता कोई अपवाद (exception) उत्पन्न करती है, तो यह उल्लंघन FutureContinuationHasThrownViolation की ओर ले जाती है [SWS_CORE_06237]। अपवादों को निरंतरता से बाहर निकलने की अनुमति नहीं है, बल्कि आवश्यकता पड़ने पर उन्हें त्रुटि मानों में अनुवादित किया जाना चाहिए और Result या Future के भीतर लौटाया जाना चाहिए [SWS_CORE_06237]। यह फ़ंक्शन निष्पादक-रहित (executorless) संस्करण [SWS_CORE_06231] का पूरक है और मान-युक्त ओवरलोड [SWS_CORE_00331] तथा [SWS_CORE_00337] का समकक्ष बनाता है।

यह उपयोग नोट एक AI द्वारा तैयार किया गया था और यह AUTOSAR विनिर्देश R25-11 पर आधारित है।

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Future< void, E >
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe
Verletzungen (Violations)FutureInvalidVio- If the Future is invalid (valid returns false) lation FutureContinua- If the continuation throws an exception. tionHasThrownVio- lation

Template-Parameter

ParameterBeschreibung
FExecutorTthe type of the func argument the type of the executor argument

Parameter (in)

ParameterBeschreibung
funca callable to register
executorthe execution context in which to execute the Callable func

Rückgabewert

TypBeschreibung
Future< <see below> >a new Future instance for the result of the continuation

Fehler

FehlercodeBeschreibung
This function does not specify any standardized errors.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06237
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06237@rel:R25-11#eb5d3468
Content hash
eb5d3468
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06237
Status: valid/unmigrated Version: rel:R25-11#58e4cf50 Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06237@rel:R25-11#58e4cf50
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#e39189402026-09-30
  • R20-11rel:R20-11#5e1b7f5b2026-10-14
  • R21-11rel:R21-11#1e3cbb002026-10-14
  • R22-11rel:R22-11#e2d3ef1a2026-10-14
  • R23-11rel:R23-11#8b2f870e2026-10-14
  • R24-11rel:R24-11#27088c392026-10-14
  • R25-11rel:R25-11#58e4cf502026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन valid [SWS_CORE_06227] Upstream: RS_AP_00130

bool valid () const noexcept;

Checks if the Future is valid, i.e. if it has a shared state.

This function shall behave the same as the corresponding std::future function.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 480112e5c811 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

फलन valid() समकालिक रूप से जाँचता है कि क्या ara::core::Future<void, E> के इंस्टेंस में कोई साझा स्थिति (Shared State) है और इस प्रकार यह उपयोग करने योग्य है या नहीं [SWS_CORE_06227]। विनिर्देश के अनुसार, यह std::future [SWS_CORE_06227] के संगत फलन के अनुरूप व्यवहार करता है। वापसी मान के रूप में, यह true देता है यदि Future उपयोग करने योग्य है, और false देता है यदि यह उपयोग करने योग्य नहीं है [SWS_CORE_06227]।

समवर्तीता (concurrency) और त्रुटि प्रबंधन के संदर्भ में, मेथड को noexcept के रूप में घोषित किया गया है, अपवाद-सुरक्षित (exception safe) है, और स्पष्ट रूप से थ्रेड-सुरक्षित (thread-safe) के रूप में निर्दिष्ट किया गया है [SWS_CORE_06227]। अतः इसे समवर्ती संदर्भों से सुरक्षित रूप से कॉल किया जा सकता है।

अन्य ऑपरेशनों के साथ संयोजन में, valid() जीवनचक्र (lifecycle) को सुरक्षित करने का कार्य करता है:

  • यदि किसी अमान्य Future ऑब्जेक्ट (valid() == false) पर wait() [SWS_CORE_06228] या is_ready() [SWS_CORE_00332] जैसा कोई ऑपरेशन कॉल किया जाता है, तो यह उल्लंघन FutureInvalidViolation को ट्रिगर करता है।
  • उपभोग करने वाले ऑपरेशन ऑब्जेक्ट को अमान्य कर देते हैं: get() को कॉल करने के बाद, Future अब मान्य नहीं रहता है, जिससे valid() के साथ बाद की जाँचों का परिणाम false होता है [SWS_CORE_06226]।
  • इसी प्रकार, then() [SWS_CORE_00331] के माध्यम से फ़ॉरवर्डिंग या GetResult() [SWS_CORE_00336] के कॉल के परिणामस्वरूप मूल Future ऑब्जेक्ट तत्काल अमान्य हो जाता है।

यह उपयोग नोट विनिर्देश के आधार पर एक AI द्वारा जनरेट किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Future< void, E >
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
bool• TRUE: the Future is usable • FALSE: the Future is NOT usable

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06227
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06227@rel:R25-11#49693bca
Content hash
49693bca
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06227
Status: valid/unmigrated Version: rel:R25-11#d38a60b4 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06227@rel:R25-11#d38a60b4
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#285420912026-09-30
  • R19-11rel:R19-11#2199fb4c2026-10-14
  • R20-11rel:R20-11#7a68b03e2026-10-14
  • R21-11rel:R21-11#a46ad2562026-10-14
  • R22-11rel:R22-11#6bc04f322026-10-14
  • R23-11rel:R23-11#bd2577342026-10-14
  • R24-11rel:R24-11#2f9de2d02026-10-14
  • R25-11rel:R25-11#d38a60b42026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन wait [SWS_CORE_06228] Upstream: RS_AP_00130

void wait () const noexcept;

Wait for a value or an error to be available. This function shall behave the same as the corresponding std::future function

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 2f9ee5ecd1d4 उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

विशेषज्ञता ara::core::Future<void, E> का सदस्य फ़ंक्शन wait कॉलिंग थ्रेड को तब तक सिंक्रोनस रूप से ब्लॉक करता है जब तक कि एसिंक्रोनस ऑपरेशन का परिणाम मान या त्रुटि के रूप में उपलब्ध न हो जाए [SWS_CORE_06228]। फ़ंक्शन कोई पैरामीटर स्वीकार नहीं करता है, कोई रिटर्न मान (void) नहीं देता है, और विनिर्देश के अनुसार std::future [SWS_CORE_06228] के संबंधित फ़ंक्शन की तरह व्यवहार करता है।

त्रुटि प्रबंधन और सीमा शर्तों के संबंध में निम्नलिखित आवश्यकताएं लागू होती हैं:

  • अपवाद सुरक्षा और त्रुटि प्रबंधन: ऑपरेशन को noexcept के साथ घोषित किया गया है और अपवाद-सुरक्षित (exception safe) [SWS_CORE_06228] के रूप में निर्दिष्ट किया गया है। यदि Future इंस्टेंस false के लिए valid() रिटर्न देता है, तो उल्लंघन FutureInvalidViolation मौजूद है [SWS_CORE_06228]। इस उल्लंघन का ठोस परिणाम AUTOSAR रनटाइम परिवेश के सिस्टम-विशिष्ट त्रुटि प्रबंधन के रूप में कार्यान्वित होना चाहिए। प्रश्न Q-469e9abc947b9869 (खुला)
  • समवर्तीता: फ़ंक्शन को थ्रेड-सुरक्षित नहीं (not thread-safe) [SWS_CORE_06228] के रूप में वर्गीकृत किया गया है। इसलिए बाहरी सिंक्रोनाइज़ेशन के बिना एक ही Future ऑब्जेक्ट पर समवर्ती एक्सेस अस्वीकार्य है।

मॉड्यूल core के अन्य फ़ंक्शनों के संयोजन में निम्नलिखित संभावनाएं मौजूद हैं:

  • थ्रेड-सुरक्षित विधि is_ready के साथ, यह पहले से पूछा जा सकता है कि क्या ऑपरेशन पूरा हो गया है; true लौटाए जाने पर, wait अब ब्लॉक न होने की गारंटी देता है [SWS_CORE_06232]।
  • अंतहीन ब्लॉकिंग से बचने के लिए, सापेक्ष अवधि [SWS_CORE_06229] के साथ समय-सीमित फ़ंक्शन wait_for और साथ ही पूर्ण समय बिंदु [SWS_CORE_06230] के साथ wait_until उपलब्ध हैं।
  • प्राथमिक टेम्पलेट वर्ग ara::core::Future के लिए समान सिंक्रोनस प्रतीक्षा आवश्यकताएं और प्रतिबंध [SWS_CORE_00328] लागू होते हैं।

यह पाठ एक AI सिस्टम द्वारा क्यूरेट किया गया था और विशेष रूप से AUTOSAR विनिर्देश पर निर्भर करता है।

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Future< void, E >
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe
Verletzungen (Violations)FutureInvalidVio- If the Future is invalid (valid returns false) lation

Rückgabewert

TypBeschreibung
None

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06228
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06228@rel:R25-11#63b5e710
Content hash
63b5e710
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06228
Status: valid/unmigrated Version: rel:R25-11#24670f02 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06228@rel:R25-11#24670f02
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#a06c2ef52026-09-30
  • R19-11rel:R19-11#4b7a7a422026-10-14
  • R20-11rel:R20-11#457c63ae2026-10-14
  • R21-11rel:R21-11#6b136de32026-10-14
  • R22-11rel:R22-11#3d7c381b2026-10-14
  • R23-11rel:R23-11#d02a0b222026-10-14
  • R24-11rel:R24-11#a383ce752026-10-14
  • R25-11rel:R25-11#24670f022026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन wait_for [SWS_CORE_06229] Upstream: RS_AP_00130

template <typename Rep, typename Period> FutureStatus wait_for (const std::chrono::duration< Rep, Period > &timeoutDuration) const noexcept;

Wait for the given period, or until a value or an error is available. This function shall behave the same as the corresponding std::future function

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 927a98d78cf3 उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

विशेषज्ञता ara::core::Future<void, E> की विधि wait_for कॉलिंग थ्रेड को अधिकतम समय अवधि timeoutDuration के लिए या परिणाम उपलब्ध होने तक सिंक्रोनस रूप से ब्लॉक करती है [SWS_CORE_06229]। यह सिमेंटिक रूप से संबंधित मानक फ़ंक्शन std::future::wait_for [SWS_CORE_06229] की तरह व्यवहार करती है।

रिटर्न मान के रूप में, फ़ंक्शन स्थिति FutureStatus [SWS_CORE_06229] प्रदान करता है। यह FutureStatus::kReady के साथ संकेत देता है कि एक मान या त्रुटि उपलब्ध है, या FutureStatus::kTimeout के साथ कि परिणाम के बिना समय सीमा समाप्त हो गई है [SWS_CORE_00361]। std::future_status::deferred के समतुल्य स्थिति प्रदान नहीं की गई है [SWS_CORE_00361]। यह व्यवहार सामान्य Future इंटरफ़ेस [SWS_CORE_00329] से मेल खाता है।

कॉल के लिए समवर्तीता और त्रुटि हैंडलिंग के संबंध में निम्नलिखित शर्तें लागू होती हैं:

  • समवर्तीता: फ़ंक्शन को थ्रेड-सुरक्षित नहीं (not thread-safe) के रूप में निर्दिष्ट किया गया है [SWS_CORE_06229]। एक ही इंस्टेंस पर समवर्ती कॉल्स को कॉलर साइड पर सुरक्षित किया जाना चाहिए।
  • त्रुटि स्थितियाँ और अपवाद-सुरक्षा: ऑपरेशन को अपवाद-सुरक्षित (exception safe) और साथ ही noexcept घोषित किया गया है [SWS_CORE_06229]। यदि Future ऑब्जेक्ट अमान्य है (valid() false लौटाता है), तो एक FutureInvalidViolation मौजूद है [SWS_CORE_06229]। noexcept घोषणा के कारण, यह उल्लंघन संभवतः तत्काल प्रोग्राम निरस्तीकरण (एबॉर्शन) की ओर ले जाएगा। प्रश्न Q-4f01aa6e7fbfb12d (खुला)

यह उपयोग नोट AUTOSAR Adaptive R25-11 के विनिर्देश के आधार पर स्वचालित रूप से बनाया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Future< void, E >
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe
Verletzungen (Violations)FutureInvalidVio- If the Future is invalid (valid returns false) lation

Parameter (in)

ParameterBeschreibung
timeoutDurationmaximal duration to wait for

Rückgabewert

TypBeschreibung
FutureStatusstatus that indicates whether the timeout hit or if a value is available

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06229
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06229@rel:R25-11#03289197
Content hash
03289197
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06229
Status: valid/unmigrated Version: rel:R25-11#cde767bb Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06229@rel:R25-11#cde767bb
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#414f595f2026-09-30
  • R19-11rel:R19-11#8d512e042026-10-14
  • R20-11rel:R20-11#f89ce5282026-10-14
  • R21-11rel:R21-11#f89ce5282026-10-14
  • R22-11rel:R22-11#68d81b0f2026-10-14
  • R23-11rel:R23-11#534174642026-10-14
  • R24-11rel:R24-11#38872d6e2026-10-14
  • R25-11rel:R25-11#cde767bb2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन wait_until [SWS_CORE_06230] Upstream: RS_AP_00130

template <typename Clock, typename Duration> FutureStatus wait_until (const std::chrono::time_point< Clock, Duration > &deadline) const noexcept;

Wait until the given time, or until a value or an error is available. This function shall behave the same as the corresponding std::future function.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 932b0d674f17 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

विशेषज्ञता ara::core::Future<void, E> का सदस्य फ़ंक्शन wait_until कॉलिंग थ्रेड को तब तक ब्लॉक करता है जब तक कि निर्दिष्ट पूर्ण समय बिंदु deadline तक न पहुँच जाए या कोई मान अथवा त्रुटि उपलब्ध न हो जाए [SWS_CORE_06230]। फ़ंक्शन संबंधित C++ मानक फ़ंक्शन std::future::wait_until [SWS_CORE_06230] के समान व्यवहार दिखाता है और ara::core::Future [SWS_CORE_00330] के लिए जेनेरिक ओवरलोड के समान सिमेंटिक्स रखता है।

FutureStatus प्रकार का रिटर्न मान यह संकेत देता है कि क्या समय सीमा समाप्त हो गई है या कोई मान उपलब्ध है [SWS_CORE_06230]। यहाँ, स्थिति kReady इंगित करती है कि साझा स्थिति तैयार है, जबकि kTimeout का अर्थ है कि साझा स्थिति समय सीमा समाप्त होने से पहले तैयार नहीं हुई [SWS_CORE_00361]। std::future_status::deferred के अनुरूप स्थिति FutureStatus में मौजूद नहीं है [SWS_CORE_00361]।

निष्पादन और सीमांत शर्तों के संबंध में निम्नलिखित आवश्यकताएं परिभाषित हैं:

  • कॉल संदर्भ और अपवाद व्यवहार: फ़ंक्शन हेडर फ़ाइल #include "ara/core/future.h" के माध्यम से उपलब्ध है, noexcept के रूप में घोषित है और अपवाद-सुरक्षित (exception safe) के रूप में निर्दिष्ट है [SWS_CORE_06230]।
  • त्रुटि स्थितियाँ: यदि Future अमान्य है, यानी यदि valid() मान false लौटाता है, तो उल्लंघन FutureInvalidViolation मौजूद होता है [SWS_CORE_06230]।
  • समवर्तीता: ऑपरेशन को थ्रेड-सुरक्षित नहीं (not thread-safe) के रूप में वर्गीकृत किया गया है [SWS_CORE_06230]।

यह उपयोग निर्देश AUTOSAR Adaptive R25-11 के विनिर्देश के आधार पर स्वचालित रूप से तैयार किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Future< void, E >
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe
Verletzungen (Violations)FutureInvalidVio- If the Future is invalid (valid returns false) lation

Parameter (in)

ParameterBeschreibung
deadlinelatest point in time to wait

Rückgabewert

TypBeschreibung
FutureStatusstatus that indicates whether the time was reached or if a value is available

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06230
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06230@rel:R25-11#eb851cb9
Content hash
eb851cb9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06230
Status: valid/unmigrated Version: rel:R25-11#f458c628 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06230@rel:R25-11#f458c628
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#eec83ed82026-09-30
  • R19-11rel:R19-11#73333c762026-10-14
  • R20-11rel:R20-11#291da1182026-10-14
  • R21-11rel:R21-11#cb6c719b2026-10-14
  • R22-11rel:R22-11#31de44c72026-10-14
  • R23-11rel:R23-11#944875602026-10-14
  • R24-11rel:R24-11#85fe57402026-10-14
  • R25-11rel:R25-11#f458c6282026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन ~Future [SWS_CORE_06233] Upstream: RS_AP_00130

~Future () noexcept;

Destructor for Future objects. Abandons any shared state

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Future< void, E >
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CORE_06233
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06233@rel:R25-11#3e54cf6c
Content hash
3e54cf6c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06233
Status: valid/unmigrated Version: rel:R25-11#7ce4899e Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CORE_06233@rel:R25-11#7ce4899e
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#32a6e0a42026-09-30
  • R19-11rel:R19-11#e8e5d2942026-10-14
  • R20-11rel:R20-11#feb4e8682026-10-14
  • R21-11rel:R21-11#a081de932026-10-14
  • R22-11rel:R22-11#40dcc5802026-10-14
  • R23-11rel:R23-11#8b89d85f2026-10-14
  • R24-11rel:R24-11#25b460852026-10-14
  • R25-11rel:R25-11#7ce4899e2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill