What is the meaning of @future ?

Elmar chrehme at gmx.de
Thu Sep 16 20:53:34 UTC 2021


Hello D community.

I was browsing the `__traits` keywords and I found `isFuture` 
whose descriptions says something about `@future`-annotated 
variables.

[link](https://dlang.org/spec/traits.html#isFuture)

I didn't find anything about `@future` for the D programming 
language. I only found that this annotation is used in Apex to 
denote futures (a.k.a. promises) as programming concept.

Is this something which exists, existed, was abandoned early as 
an idea? I remember I had read that D uses a "fiber" library to 
provide coroutines and such.

Maybe somebody knows an answer for this.


More information about the Digitalmars-d-learn mailing list