DEENESPTFRRUARHIKOZHNL

klasse ara::core::Future

[SWS_CORE_00321] Upstream: RS_AP_00130

template <typename T, typename E = ErrorCode> class Future final {...};

Implementation of std::future from [future.syn] in [11]. The implementation shall flag the condition E != ara::core::ErrorCode as a compile error.

Literaturverzeichnis SWS Core: [11] ISO/IEC 14882:2017, Programming languages – C++ – www.iso.org

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

User GuideAI-GEGENEREERD

Maakt de synchrone of asynchrone ontvangst van waarden en fouten uit een gelijktijdige bewerking mogelijk.
DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: fbd974cb6be2 Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Maakt de synchrone of asynchrone ontvangst van waarden en fouten uit een gelijktijdige bewerking mogelijk.

De klasse ara::core::Future dient als ontvanger-handle voor het resultaat van een asynchrone bewerking en beheert de toegang tot een gedeelde toestand [SWS_CORE_00327]. Consumenten kunnen de toestand niet-blokkerend controleren, synchroon wachten op de voltooiing of het resultaat via GetResult() uitzonderingsvrij als ara::core::Result in ontvangst nemen [SWS_CORE_00336]. Omdat kopieeroperaties zijn gedeletet, wordt het eigendom exclusief beheerd en na het ophalen van het resultaat of het doorsturen middels continuation wordt het object direct ongeldig.

Context

De template-klasse ara::core::Future vormt het ontvangende eindelement voor resultaten van asynchrone bewerkingen binnen het AUTOSAR Adaptive Platform. Hij maakt gecontroleerde toegang mogelijk tot een gedeelde toestand (Shared State), die asynchroon wordt gevuld door een producerende instantie [SWS_CORE_00327]. Conceptueel implementeert de klasse std::future uit de C++17-standaard ISO/IEC 14882:2017 [11], maar integreert hij naadloos in het op foutuitzonderingen gebaseerde concept van het platform: voor de template-parameter E is verplicht het fouttype ara::core::ErrorCode voorgeschreven; elke afwijkende specificatie leidt tot een compilatiefout. Tot de primaire interactiepartners behoren de asynchrone producent (zoals een geassocieerde Promise) die de waarde of fout levert, de Future-instantie als exclusieve ontvanger, evenals een consument of uitvoeringscontext (ExecutorT) waaraan vervolgtaken worden overgedragen [SWS_CORE_00331] [SWS_CORE_00337].

Levenscyclus

De aanmaak, het toestandsbeheer en de vernietiging van ara::core::Future zijn onderworpen aan strikte regels om deterministische eigendomsverhoudingen te waarborgen:

future_lifecycle Invalid Ungueltig (valid() == false) ValidPending Gueltig / Ausstehend (valid() == true, is_ready() == false) Invalid->ValidPending Move-Zuweisung / Erhalt ValidPending->Invalid Destruktor / then() ValidReady Gueltig / Bereit (valid() == true, is_ready() == true) ValidPending->ValidReady Promise stelt waarde of fout in ValidReady->Invalid GetResult() / get() / then()

Toestandsdiagram: levenscyclus en toestandsovergangen van een Future-instantie met betrekking tot geldigheid en beschikbaarheid van de Shared State. Bronnen: [SWS_CORE_00322], [SWS_CORE_00326], [SWS_CORE_00327], [SWS_CORE_00331], [SWS_CORE_00332], [SWS_CORE_00333], [SWS_CORE_00336]

Gebruikspad

Een typisch gebruikstraject voor resultaatverwerking is onderverdeeld in de volgende fasen:

  1. Statuscontrole en synchronisatie: Met is_ready() kan vooraf worden vastgesteld of het asynchrone resultaat al beschikbaar is [SWS_CORE_00332]. Is dit het geval, dan blokkeren daaropvolgende aanroepen gegarandeerd niet meer [SWS_CORE_00332]. Anders kan met wait() onbeperkt [SWS_CORE_00328] of tijdsbegrensd via wait_for() resp. wait_until() worden gesynchroniseerd [SWS_CORE_00329] [SWS_CORE_00330].
  2. Resultaatextractie: In AUTOSAR Adaptive-applicaties is de aanroep van GetResult() toonaangevend: de methode blokkeert indien nodig, werpt echter nooit uitzonderingen op en draagt de waarde of fout per move over als ara::core::Result<T, E> [SWS_CORE_00336]. De methode get() biedt STL-conformiteit, gooit in geval van een fout C++-exceptions en neemt bij gedeactiveerde uitzonderingsafhandeling van de toolchain niet deel aan overload resolution [SWS_CORE_00326].
  3. Asynchrone ketting (continuations): In plaats van synchroon blokkeren kan via then() een callback worden geregistreerd, optioneel onder toewijzing aan een uitvoeringscontext (executor) [SWS_CORE_00331] [SWS_CORE_00337]. De callback ontvangt het resultaat als Result<T, E>-rvalue. Als de vervolgfunctie zelf een Future of Result oplevert, voert then() een automatische unwrapping uit en levert direct een overeenkomstige Future<T2, E2> op [SWS_CORE_00331] [SWS_CORE_00337].
Asynchroon verloop met GetResult()AufruferFuturePromiseErzeugt Shared State & FutureUebergabe an KonsumentUse Case: Synchronisatie en ophalenis_ready()falseSetResult(...) / SetError(...)GetResult()Shared State geleertvalid() == falseResult<T, E>

Sequentiediagram: Typisch verloop van asynchrone synchronisatie en resultaatophaling via GetResult(). Bronnen: [SWS_CORE_00327], [SWS_CORE_00332], [SWS_CORE_00336]

Foutscenario's

In de omgang met ara::core::Future zijn de volgende foutsituaties gespecificeerd:

  • Aanroep op ongeldige instantie: De aanroep van is_ready(), wait(), wait_for(), wait_until(), GetResult() of then() bij een ongeldige instantie (valid() == false) vormt een FutureInvalidViolation [SWS_CORE_00328] [SWS_CORE_00329] [SWS_CORE_00330] [SWS_CORE_00331] [SWS_CORE_00332] [SWS_CORE_00336] [SWS_CORE_00337]. Bij de aanroep van get() wordt in dit geval een FutureException met de foutcode kNoState geworpen [SWS_CORE_00326].
  • Verlaten shared state (broken promise): Als de shared state voortijdig door de geassocieerde promise wordt opgegeven, levert GetResult() een Result op met de gestandaardiseerde foutcode FutureErrc::kBrokenPromise [SWS_CORE_00336]. Bij de aanroep van get() wordt de overeenkomstige exceptie gegenereerd [SWS_CORE_00326].
  • Excepties in vervolgfuncties: Een geregistreerde continuation mag geen excepties werpen, behalve voor het implementeren van een violation. Als deze toch een exceptie genereert, leidt dit tot een FutureContinuationHasThrownViolation [SWS_CORE_00331] [SWS_CORE_00337]. Excepties in closures moeten worden afgevangen en als foutstatus in de vorm van een Result of Future worden geretourneerd [SWS_CORE_00331] [SWS_CORE_00337].

Deze handleiding is uitsluitend gebaseerd op de specificatie-eisen van AUTOSAR Adaptive Core (R25-11).

Ledenkaart

Klassendiagram

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

G nara__core__Future930 Future + Future() + operator=() + ~Future() + GetResult() + get() + is_ready() + then() + valid() + wait() + wait_for() + wait_until()

Detailweergave

Kies een item in de inhoudsopgave.

Constructors en destructor

Future functie 3

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

Overloads Future 3
Future () noexcept=default; SWS_CORE_00322
Future (Future &&other) noexcept; SWS_CORE_00323
Future (const Future &)=delete; SWS_CORE_00334
~Future functie

Destructor for Future objects. Abandons any shared state

~Future () noexcept;

Methoden

get functie

Get the value.

T get () noexcept(false);
GetResult functie

Get the result.

Result< T, E > GetResult () noexcept(std::is_nothrow_move_ constructible< T >::value &&std::is_nothrow_move_constructible< E >::value);
is_ready functie

Return whether the asynchronous operation has finished.

bool is_ready () const noexcept;
then functie 2

Create a new Future with the content returned by func when passed the Result of this Future. The callable func may be called in the context of this call or in the context of • Promise::set_result(const T&) • Promise::set_result(T&&) • Promise::SetError(E&&) • Promise::SetError(const E&) or somewhere else.

Overloads then 2
template <typename F> auto then (F &&func) noexcept -> Future< <see below> >; SWS_CORE_00331
template <typename F, typename ExecutorT> auto then (F &&func, ExecutorT &&executor) noexcept -> Future< <see below> >; SWS_CORE_00337
valid functie

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

bool valid () const noexcept;
wait functie

Wait for a value or an error to be available.

void wait () const noexcept;
wait_for functie

Wait for the timeoutDuration or until a value or an error is available.

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

Wait until the deadline or until a value or an error is available.

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

Operatoren

operator= functie 2

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

Overloads = 2
Future & operator= (Future &&other) noexcept; SWS_CORE_00325
Future & operator= (const Future &)=delete; SWS_CORE_00335

Documentatie van de methoden

functie Future [SWS_CORE_00322] Upstream: RS_AP_00130

Future () noexcept=default;

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
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CORE_00322
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00322@rel:R25-11#cf98d9cd
Content hash
cf98d9cd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00322
Status: valid/unmigrated Version: rel:R25-11#869eb074 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_00322@rel:R25-11#869eb074
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#f20c46ff2026-09-30
  • R19-11rel:R19-11#dea6599e2026-10-14
  • R20-11rel:R20-11#40f0427d2026-10-14
  • R21-11rel:R21-11#40f0427d2026-10-14
  • R22-11rel:R22-11#3116da522026-10-14
  • R23-11rel:R23-11#42749bfd2026-10-14
  • R24-11rel:R24-11#27bc40832026-10-14
  • R25-11rel:R25-11#869eb0742026-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

functie Future [SWS_CORE_00323] 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
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_00323
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00323@rel:R25-11#36b712c1
Content hash
36b712c1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00323
Status: valid/unmigrated Version: rel:R25-11#67bc21d5 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_00323@rel:R25-11#67bc21d5
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#16df79b52026-09-30
  • R19-11rel:R19-11#8b1810862026-10-14
  • R20-11rel:R20-11#d2675b492026-10-14
  • R21-11rel:R21-11#9ce1ca602026-10-14
  • R22-11rel:R22-11#62a98b892026-10-14
  • R23-11rel:R23-11#d38da6892026-10-14
  • R24-11rel:R24-11#7f1618232026-10-14
  • R25-11rel:R25-11#67bc21d52026-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

functie Future [SWS_CORE_00334] Upstream: RS_AP_00130

Future (const Future &)=delete;

Copy constructor shall be disabled

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Future

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

Record
AUTOSAR/AP/record/SWS_CORE_00334
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00334@rel:R25-11#b2858612
Content hash
b2858612
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00334
Status: valid/unmigrated Version: rel:R25-11#1f07079c 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_00334@rel:R25-11#1f07079c
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#108bb8a72026-09-30
  • R19-11rel:R19-11#4a6d37412026-10-14
  • R20-11rel:R20-11#a10780802026-10-14
  • R21-11rel:R21-11#2f2e218f2026-10-14
  • R22-11rel:R22-11#2129f6a42026-10-14
  • R23-11rel:R23-11#ce09ab2b2026-10-14
  • R24-11rel:R24-11#7862d2022026-10-14
  • R25-11rel:R25-11#1f07079c2026-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

functie GetResult [SWS_CORE_00336] Upstream: RS_AP_00130

Result< T, E > GetResult () noexcept(std::is_nothrow_move_ constructible< T >::value &&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.

As per std::future, after this function is called the Future is no longer valid ( valid() ==FALSE ).

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

Rückgabewert

TypBeschreibung
Result< T, E >a ara::core::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: • – 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].

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_00336
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00336@rel:R25-11#f2981e99
Content hash
f2981e99
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00336
Status: valid/unmigrated Version: rel:R25-11#0af67485 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_00336@rel:R25-11#0af67485
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#7983aa762026-09-30
  • R19-11rel:R19-11#1ac6dc312026-10-14
  • R20-11rel:R20-11#652256322026-10-14
  • R21-11rel:R21-11#652256322026-10-14
  • R22-11rel:R22-11#8964f0202026-10-14
  • R23-11rel:R23-11#2380a90e2026-10-14
  • R24-11rel:R24-11#09c337922026-10-14
  • R25-11rel:R25-11#0af674852026-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

functie get [SWS_CORE_00326] Upstream: RS_AP_00130

T get () noexcept(false);

Get the value.

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

As per std::future, after this function is called the Future is no longer valid ( valid() ==FALSE ).

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: bdf8e21a85ce Herkomst
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Gebruik

De methode get() haalt synchroon het resultaat van het type T op uit een ara::core::Future [SWS_CORE_00326]. De functie gedraagt zich identiek aan de tegenhanger in std::future; als de asynchrone berekening nog bezig is, blokkeert de aanroep tot voltooiing of tot er een fout optreedt [SWS_CORE_00336]. Door de aanroep verliest het object zijn toestand, zodat de future onmiddellijk ongeldig wordt (valid() == false) [SWS_CORE_00326]. Een niet-blokkerende aanroep kan vooraf worden gewaarborgd via is_ready() [SWS_CORE_00332].

Foutafhandeling

Fouten worden gemeld via C++-exceptions [SWS_CORE_00326]:

  • Als in de toegewezen Promise via SetError() of SetResult() een fout is opgeslagen, wordt er een exceptie van het desbetreffende fouttype opgeworpen [SWS_CORE_00326].
  • Wordt de shared state door de asynchrone operatie voortijdig opgegeven, dan resulteert dit in de fout kBrokenPromise conform FutureErrc [SWS_CORE_00326], [SWS_CORE_00400].
  • Vindt de aanroep plaats op een ongeldige instantie, dan wordt een FutureException met de foutcode kNoState geworpen [SWS_CORE_00326].

Gelijktijdigheid en beperkingen

De operatie is noch thread-safe noch uitzonderingsveilig (not exception safe) [SWS_CORE_00326]. Gelijktijdige toegang tot dezelfde future vanuit meerdere threads vereist externe synchronisatie. Als excepties in de compiler-toolchain zijn uitgeschakeld, neemt get() niet deel aan overbelastingresolutie [SWS_CORE_00326]; voor dit geval bestaat het exceptievrije alternatief GetResult() [SWS_CORE_00336]. Voor instanties zonder retourwaarde is de specialisatie Future<void, E>::get() beschikbaar [SWS_CORE_06226].

Deze gebruiksinstructie is geautomatiseerd opgesteld op basis van de specificatie AUTOSAR Adaptive R25-11.

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

Rückgabewert

TypBeschreibung
Tvalue of type T

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 if 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_00326
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00326@rel:R25-11#1b07744a
Content hash
1b07744a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00326
Status: valid/unmigrated Version: rel:R25-11#86352c5a 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_00326@rel:R25-11#86352c5a
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#772635442026-09-30
  • R19-11rel:R19-11#bf2bb1bc2026-10-14
  • R20-11rel:R20-11#1b0259a32026-10-14
  • R21-11rel:R21-11#e72dc9d62026-10-14
  • R22-11rel:R22-11#5fce45d52026-10-14
  • R23-11rel:R23-11#2294bfde2026-10-14
  • R24-11rel:R24-11#83b80b3f2026-10-14
  • R25-11rel:R25-11#86352c5a2026-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

functie is_ready [SWS_CORE_00332] Upstream: RS_AP_00130

bool is_ready () const noexcept;

Return whether the asynchronous operation has finished.

If this function returns TRUE, get(), GetResult() and the wait() calls are guaranteed not to block.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Future
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)FutureInvalidVio- If the Future is invalid ( valid() ==FALSE ). lation

Rückgabewert

TypBeschreibung
bool• TRUE: the Future contains a value or an error • FALSE: the Future does NOT contain a value or an error

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

Record
AUTOSAR/AP/record/SWS_CORE_00332
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00332@rel:R25-11#fcfe149f
Content hash
fcfe149f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00332
Status: valid/unmigrated Version: rel:R25-11#3a721122 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_00332@rel:R25-11#3a721122
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#7b5a5cd82026-09-30
  • R19-11rel:R19-11#1351fbd62026-10-14
  • R20-11rel:R20-11#29432cbf2026-10-14
  • R21-11rel:R21-11#5f5d2ce12026-10-14
  • R22-11rel:R22-11#5dc081682026-10-14
  • R23-11rel:R23-11#377e18d72026-10-14
  • R24-11rel:R24-11#3361542e2026-10-14
  • R25-11rel:R25-11#3a7211222026-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

functie operator= [SWS_CORE_00325] 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
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_00325
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00325@rel:R25-11#5229e307
Content hash
5229e307
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00325
Status: valid/unmigrated Version: rel:R25-11#aaf376df 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_00325@rel:R25-11#aaf376df
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#13e5b1852026-09-30
  • R19-11rel:R19-11#93353d342026-10-14
  • R20-11rel:R20-11#3bdb585e2026-10-14
  • R21-11rel:R21-11#a4d956ef2026-10-14
  • R22-11rel:R22-11#9c832db92026-10-14
  • R23-11rel:R23-11#c2dbc2b52026-10-14
  • R24-11rel:R24-11#5c0627a82026-10-14
  • R25-11rel:R25-11#aaf376df2026-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

functie operator= [SWS_CORE_00335] Upstream: RS_AP_00130

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

Copy assignment operator shall be disabled

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Future

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

Record
AUTOSAR/AP/record/SWS_CORE_00335
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00335@rel:R25-11#e29791e1
Content hash
e29791e1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00335
Status: valid/unmigrated Version: rel:R25-11#9bdef4fb 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_00335@rel:R25-11#9bdef4fb
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#b9b4dead2026-09-30
  • R19-11rel:R19-11#3780a25f2026-10-14
  • R20-11rel:R20-11#7f6cf9742026-10-14
  • R21-11rel:R21-11#7f6cf9742026-10-14
  • R22-11rel:R22-11#b8baf3702026-10-14
  • R23-11rel:R23-11#e09e21542026-10-14
  • R24-11rel:R24-11#bb38b8c92026-10-14
  • R25-11rel:R25-11#9bdef4fb2026-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

functie then [SWS_CORE_00331] 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. The callable func may be called in the context of this call or in the context of • Promise::set_result(const T&) • Promise::set_result(T&&) • Promise::SetError(E&&) • Promise::SetError(const E&) or somewhere else.

valid() ==FALSE on the original Future object immediately after it returns.

The Callable input argument func takes a Result<T,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<T,E>>). Return type deduction: • 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 then(...) are registered in the Future F that 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.

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 771d2952e4cb Herkomst
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

De lidfunctie then dient voor het aaneenschakelen van asynchrone berekeningen en registreert een aanroepbaar object func als continuation op een instantie van ara::core::Future [SWS_CORE_00331]. Na terugkeer van de aanroep is de oorspronkelijke Future ongeldig (valid() == false). Het aanroepdoel ontvangt het via GetResult() verkregen resultaat van de instantie als rvalue van het type Result<T, E> [SWS_CORE_00331].

Het retourtype van then richt zich naar het retourtype U van de continuation [SWS_CORE_00331]:

  • Geeft func een Future<T2, E2> terug, dan vindt impliciete future-unwrapping naar Future<T2, E2> plaats [SWS_CORE_00331].
  • Geeft func een Result<T2, E2> terug, dan vindt impliciete result-unwrapping naar Future<T2, E2> plaats [SWS_CORE_00331].
  • In alle andere gevallen is het retourtype Future<U, E> [SWS_CORE_00331].

De uitvoering van func kan synchroon in de context van de aanroep van then, in de context van Promise::set_result resp. Promise::SetError of in een andere context plaatsvinden [SWS_CORE_00331]. De aanroep is gespecificeerd als niet thread-safe. De continuation wordt geregistreerd in de geretourneerde Future; na terugkeer uit de destructor daarvan mag er geen continuation meer worden uitgevoerd, terwijl een reeds lopende uitvoering tot het einde wordt doorlopen [SWS_CORE_00331].

Gestandaardiseerde foutcodes bestaan niet [SWS_CORE_00331]. Fouten moeten door gebruikers worden opgevangen en als foutcode worden doorgegeven in een geretourneerde Result of Future, aangezien excepties de continuation niet mogen verlaten. Een aanroep op een ongeldige Future activeert FutureInvalidViolation; werpt de continuation een exceptie op, dan resulteert dit in FutureContinuationHasThrownViolation [SWS_CORE_00331].

Voor uitvoeringen in een expliciete uitvoeringscontext is de overbelasting met executor beschikbaar [SWS_CORE_00337], terwijl voor operaties zonder retourwaarde de void-specialisatie geldt [SWS_CORE_06231].

Deze gebruiksinstructie is gegenereerd door een AI op basis van de specificatie AUTOSAR Adaptive R25-11.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Future
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe
Verletzungen (Violations)FutureInvalidVio- If the Future is invalid ( valid ==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.
Hinweise: 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. Exceptions can be used within the continuation, however if they do not realize a Violation, they must not escape the continuation.

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

Record
AUTOSAR/AP/record/SWS_CORE_00331
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00331@rel:R25-11#9e89c4d1
Content hash
9e89c4d1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00331
Status: valid/unmigrated Version: rel:R25-11#7ccfcd36 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_00331@rel:R25-11#7ccfcd36
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#07a6189e2026-09-30
  • R19-11rel:R19-11#ab04e9222026-10-14
  • R20-11rel:R20-11#99557d6e2026-10-14
  • R21-11rel:R21-11#3a933d6a2026-10-14
  • R22-11rel:R22-11#008dba362026-10-14
  • R23-11rel:R23-11#4907cfa12026-10-14
  • R24-11rel:R24-11#2eae23502026-10-14
  • R25-11rel:R25-11#7ccfcd362026-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

functie then [SWS_CORE_00337] 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<T,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<T,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.

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: b5ca6c97ece5 Herkomst
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Gebruik en semantiek

De methode then registreert een continuation (func) die asynchroon wordt uitgevoerd in de context van de meegegeven executor zodra het resultaat van de actuele Future-instantie beschikbaar is [SWS_CORE_00337]. De aanroepbare eenheid neemt het resultaat van de instantie in ontvangst als een rvalue-expressie van het type Result<T,E> [SWS_CORE_00337]. Het retourtype is afhankelijk van het retourtype U van de continuation:

  • Retourneert de continuation een Future<T2,E2>, dan vindt er een impliciet uitpakken naar Future<T2,E2> plaats [SWS_CORE_00337].
  • Retourneert de continuation een Result<T2,E2>, dan wordt dit eveneens impliciet opgelost naar Future<T2,E2> [SWS_CORE_00337].
  • In alle andere gevallen levert de aanroep Future<U,E> op [SWS_CORE_00337].

Gelijktijdigheid en levenscyclus

Onmiddellijk na terugkeer van de methode-aanroep is de oorspronkelijke Future-instantie ongeldig (valid() == false) [SWS_CORE_00337]. De functie is gedeclareerd als niet-thread-safe [SWS_CORE_00337]. Geregistreerde continuations worden beheerd in de nieuw geretourneerde Future. Na afloop van de destructor daarvan mag er geen continuation meer worden gestart; een reeds lopende uitvoering wordt voltooid, waardoor de destructor kan blokkeren [SWS_CORE_00337].

Foutafhandeling en wisselwerking

Gestandaardiseerde foutcodes zijn niet gedefinieerd [SWS_CORE_00337]. Een aanroep op een ongeldige instantie activeert de violation FutureInvalidViolation [SWS_CORE_00337]. Werpt de continuation een exceptie op, dan resulteert dit in een FutureContinuationHasThrownViolation; uitzonderingen moeten daarom worden opgevangen en als fout via ara::core::Result of ara::core::Future worden doorgegeven [SWS_CORE_00337]. Ten opzichte van de overbelasting zonder uitvoeringscontext [SWS_CORE_00331] dwingt deze variant de uitvoering op de meegegeven executor af; voor void-resultaattypen bestaat de analoge specialisatie [SWS_CORE_06237].

Deze gebruiksinstructie is gebaseerd op de specificatie AUTOSAR Adaptive R25-11.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Future
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe
Verletzungen (Violations)FutureInvalidVio- If the Future is invalid ( valid ==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 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_00337
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00337@rel:R25-11#685b93e3
Content hash
685b93e3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00337
Status: valid/unmigrated Version: rel:R25-11#749fe9dc 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_00337@rel:R25-11#749fe9dc
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#1e610dd32026-09-30
  • R20-11rel:R20-11#12659cf92026-10-14
  • R21-11rel:R21-11#ecfba0d52026-10-14
  • R22-11rel:R22-11#d94fa7762026-10-14
  • R23-11rel:R23-11#8b664ec92026-10-14
  • R24-11rel:R24-11#853472252026-10-14
  • R25-11rel:R25-11#749fe9dc2026-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

functie valid [SWS_CORE_00327] 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.

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 0fe78ab97a32 Herkomst
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

De synchrone opvraagfunctie valid() controleert zonder parameters of een instantie van ara::core::Future een gedeelde toestand (shared state) bezit en daarmee bruikbaar is [SWS_CORE_00327]. Deze levert true terug indien het object gereed is voor gebruik, en false wanneer er geen gedeelde toestand aanwezig is [SWS_CORE_00327]. Het gedrag komt overeen met de standaardfunctie std::future::valid en geldt op gelijke wijze voor de templatespecialisatie ara::core::Future<void, E> [SWS_CORE_06227].

De functie is gedeclareerd als noexcept, geldt als exceptieveilig (exception safe) en is uitdrukkelijk gespecificeerd als thread-safe (thread-safe) [SWS_CORE_00327]. Deze veroorzaakt zelf geen foutcodes of excepties en kan daarom veilig worden gebruikt voor tostandscontrole [SWS_CORE_00327].

In het samenspel met andere methoden van Future is de geldigheidscontrole cruciaal, aangezien aanroepende operaties zoals wait() [SWS_CORE_00328] of is_ready() [SWS_CORE_00332] bij een ongeldige toestand (valid() == false) een FutureInvalidViolation veroorzaken. Een voorheen geldige Future wordt automatisch ongeldig zodra het resultaat ervan via get() [SWS_CORE_00326] of GetResult() [SWS_CORE_00336] wordt geconsumeerd of verdere verwerking via then() [SWS_CORE_00331], [SWS_CORE_00337] is geregistreerd.

Deze tekst is opgesteld door een AI en dient als leidraad. Uitsluitend de gekoppelde AUTOSAR-specificaties zijn bindend.

Implementer's Guide volgt (complexiteit I1)

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Future
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_00327
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00327@rel:R25-11#33c6b84a
Content hash
33c6b84a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00327
Status: valid/unmigrated Version: rel:R25-11#67ea8cce 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_00327@rel:R25-11#67ea8cce
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#d314fbc32026-09-30
  • R19-11rel:R19-11#80d78b532026-10-14
  • R20-11rel:R20-11#b7f4e1552026-10-14
  • R21-11rel:R21-11#688e791c2026-10-14
  • R22-11rel:R22-11#4e92dc072026-10-14
  • R23-11rel:R23-11#91718d0e2026-10-14
  • R24-11rel:R24-11#1c24bacf2026-10-14
  • R25-11rel:R25-11#67ea8cce2026-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

functie wait [SWS_CORE_00328] 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

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 9635b0074677 Herkomst
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

De elementfunctie wait van de klasse ara::core::Future blokkeert de aanroepende thread synchroon totdat er een resultaatwaarde of een fout uit de asynchrone operatie beschikbaar is [SWS_CORE_00328]. De functie accepteert geen parameters, levert geen retourwaarde op en gedraagt zich volgens de specificatie analoog aan de overeenkomstige functie uit std::future [SWS_CORE_00328]. Hetzelfde gedrag geldt voor de template-specialisatie ara::core::Future<void, E> [SWS_CORE_06228].

Met betrekking tot foutafhandeling en gelijktijdigheid zijn de volgende specificaties gedefinieerd:

  • Foutconditie: Als het future-object ongeldig is (valid == FALSE), is er sprake van een FutureInvalidViolation [SWS_CORE_00328], [SWS_CORE_06228]. Desondanks is de functie gedeclareerd als noexcept en geclassificeerd als uitzonderingsveilig (exception safe) [SWS_CORE_00328].
  • Thread-safety: De aanroep is expliciet aangemerkt als not thread-safe [SWS_CORE_00328]. Gelijktijdige toegang tot hetzelfde future-object zonder externe synchronisatie is niet toegestaan.

In het samenspel met verwante interfaces verdient het aanbeveling om voorafgaand aan de aanroep te controleren met is_ready [SWS_CORE_00332], [SWS_CORE_06232]: als deze true retourneert, blokkeert de aanroep van wait gegarandeerd niet meer. Is in plaats van onbeperkt wachten een in tijd beperkte blokkering vereist, dan staan als alternatief wait_for met een relatieve tijdsduur [SWS_CORE_00329], [SWS_CORE_06229] alsook wait_until met een absoluut tijdstip [SWS_CORE_00330], [SWS_CORE_06230] ter beschikking.

Deze gebruiksinstructie is automatisch gegenereerd op basis van de specificatie AUTOSAR Adaptive R25-11.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Future
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe
Verletzungen (Violations)FutureInvalidVio- If the Future is invalid ( valid ==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_00328
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00328@rel:R25-11#ad1c6fdb
Content hash
ad1c6fdb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00328
Status: valid/unmigrated Version: rel:R25-11#7d1caea0 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_00328@rel:R25-11#7d1caea0
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#71020ccc2026-09-30
  • R19-11rel:R19-11#1457e28d2026-10-14
  • R20-11rel:R20-11#7259d3062026-10-14
  • R21-11rel:R21-11#82e85c2e2026-10-14
  • R22-11rel:R22-11#63ca481a2026-10-14
  • R23-11rel:R23-11#7b23f9cb2026-10-14
  • R24-11rel:R24-11#4301d6592026-10-14
  • R25-11rel:R25-11#7d1caea02026-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

functie wait_for [SWS_CORE_00329] Upstream: RS_AP_00130

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

Wait for the timeoutDuration or until a value or an error is available.

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

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 360b2640b7ed Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Gebruik

De memberfunctie wait_for van de klasse ara::core::Future blokkeert de aanroepende thread maximaal gedurende het meegegeven tijdsinterval timeoutDuration of totdat een resultaatwaarde respectievelijk een fout in de gedeelde toestand gereedstaat [SWS_CORE_00329]. Het gedrag ervan komt overeen met de corresponderende functie uit std::future [SWS_CORE_00329]. Als retourwaarde levert ze een FutureStatus op [SWS_CORE_00329], die aangeeft of de gedeelde toestand beschikbaar is (kReady) of dat de vooraf bepaalde wachttijd is verstreken (kTimeout) [SWS_CORE_00361].

Foutafhandeling en randvoorwaarden

De functie is gedeclareerd als noexcept en gespecificeerd als uitzonderingsveilig (exception safe) [SWS_CORE_00329]. Als het Future-object ongeldig is (valid == FALSE), is er sprake van een schending in de vorm van FutureInvalidViolation [SWS_CORE_00329]. Interpretatie: Aangezien er geen C++-uitzonderingen mogen worden geworpen, wordt een dergelijke schending aan de platformzijde vermoedelijk afgehandeld als een fatale runtimefout. Vraag Q-2f22a07f6e143856 (open)

Gelijktijdigheid en wisselwerking

De operatie is geclassificeerd als not thread-safe [SWS_CORE_00329]; gelijktijdige toegang tot dezelfde instantie vereist daarom externe synchronisatie. De semantiek en signatuur gelden identiek voor de template-specialisatie ara::core::Future<void, E> [SWS_CORE_06229]. In tegenstelling tot std::future_status bestaat er in het enumeratietype FutureStatus geen invoer voor deferred [SWS_CORE_00361].

Deze tekst is gegenereerd door een AI op basis van de AUTOSAR-specificatie R25-11.

Implementer's Guide volgt (complexiteit I1)

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

Parameter (in)

ParameterBeschreibung
timeoutDurationmaximal duration to wait for

Rückgabewert

TypBeschreibung
FutureStatusStatus that indicates whether the timeoutDuration expired 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_00329
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00329@rel:R25-11#13521b6c
Content hash
13521b6c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00329
Status: valid/unmigrated Version: rel:R25-11#bb164066 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_00329@rel:R25-11#bb164066
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#669e52732026-09-30
  • R19-11rel:R19-11#34429cdd2026-10-14
  • R20-11rel:R20-11#6e3fcfd92026-10-14
  • R21-11rel:R21-11#6e3fcfd92026-10-14
  • R22-11rel:R22-11#4c259d672026-10-14
  • R23-11rel:R23-11#ec6d12432026-10-14
  • R24-11rel:R24-11#adb812622026-10-14
  • R25-11rel:R25-11#bb1640662026-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

functie wait_until [SWS_CORE_00330] 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 deadline or until a value or an error is available.

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

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: b4703e774b3e Herkomst
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

De memberfunctie wait_until blokkeert de aanroepende thread totdat het opgegeven absolute tijdstip deadline is bereikt of de ara::core::Future een resultaat c.q. een fout gereedstelt [SWS_CORE_00330]. Het gedrag is gebaseerd op de corresponderende functie van std::future [SWS_CORE_00330].

Als retourwaarde levert de functie een FutureStatus op [SWS_CORE_00330]. Dit enum-type signaleert via de toestand kReady dat de gedeelde toestand gereed is (waarde of fout beschikbaar), of via kTimeout dat de termijn zonder resultaat is verstreken [SWS_CORE_00361]. Een toestand analoog aan std::future_status::deferred bestaat in FutureStatus niet [SWS_CORE_00361].

Wat betreft foutafhandeling en uitzonderingsveiligheid is de functie gespecificeerd als uitzonderingsveilig (exception safe) en noexcept [SWS_CORE_00330]. Wordt de functie echter op een ongeldige instantie aangeroepen (valid == FALSE), dan is er sprake van een schending in de vorm van FutureInvalidViolation [SWS_CORE_00330].

Met betrekking tot gelijktijdigheid is wait_until geclassificeerd als niet thread-veilig (not thread-safe) [SWS_CORE_00330]. Parallelle toegang tot hetzelfde ara::core::Future-object moet daarom extern worden gesynchroniseerd. Dezelfde semantiek en signatuur gelden voor de specialisatie ara::core::Future<void, E> [SWS_CORE_06230].

Deze tekst is opgesteld door een AI en dient als richtlijn. Bepalend is de specificatie.

Implementer's Guide volgt (complexiteit I1)

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

Parameter (in)

ParameterBeschreibung
deadlinelatest point in time to wait

Rückgabewert

TypBeschreibung
FutureStatusstatus that indicates whether the deadline 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_00330
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00330@rel:R25-11#d14ff7be
Content hash
d14ff7be
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00330
Status: valid/unmigrated Version: rel:R25-11#00db6175 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_00330@rel:R25-11#00db6175
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#f662b2c42026-09-30
  • R19-11rel:R19-11#a84101962026-10-14
  • R20-11rel:R20-11#4f8fd4042026-10-14
  • R21-11rel:R21-11#0fe1ad9c2026-10-14
  • R22-11rel:R22-11#6ef3c1042026-10-14
  • R23-11rel:R23-11#872aa1602026-10-14
  • R24-11rel:R24-11#412256922026-10-14
  • R25-11rel:R25-11#00db61752026-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

functie ~Future [SWS_CORE_00333] 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
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

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

Record
AUTOSAR/AP/record/SWS_CORE_00333
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00333@rel:R25-11#7b6e8aa4
Content hash
7b6e8aa4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00333
Status: valid/unmigrated Version: rel:R25-11#2689e3e8 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_00333@rel:R25-11#2689e3e8
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#16f70bc12026-09-30
  • R19-11rel:R19-11#42ac89202026-10-14
  • R20-11rel:R20-11#8f4a235f2026-10-14
  • R21-11rel:R21-11#eccb21be2026-10-14
  • R22-11rel:R22-11#58e9180f2026-10-14
  • R23-11rel:R23-11#b308517b2026-10-14
  • R24-11rel:R24-11#02a09fc62026-10-14
  • R25-11rel:R25-11#2689e3e82026-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