\hypertarget{group__Eina__Future}{}\section{Eina\+\_\+\+Future}
\label{group__Eina__Future}\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}


Cancels a future.  


\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{struct__Eina__Future__Race__Result}{\+\_\+\+Eina\+\_\+\+Future\+\_\+\+Race\+\_\+\+Result}}
\begin{DoxyCompactList}\small\item\em The struct that is used to store the race result. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{group__Eina__Future_ga1161af18cd7714ab7fd40da2afa39164}{E\+I\+N\+A\+\_\+\+F\+U\+T\+U\+R\+E\+\_\+\+S\+E\+N\+T\+I\+N\+EL}}~((void $\ast$)(unsigned long)-\/1)
\begin{DoxyCompactList}\small\item\em Used by \mbox{\hyperlink{group__Eina__Future_ga13d85b5282b02260407c103690b2b3f4}{eina\+\_\+promise\+\_\+race\+\_\+array()}} and \mbox{\hyperlink{group__Eina__Future_ga17094a3e3dc964ef33313106041dc4e0}{eina\+\_\+promise\+\_\+all\+\_\+array()}} and friends to flag the end of the array. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__Future_gac0bf547a87e9bea1e589e8a6e13576e7}{eina\+\_\+promise\+\_\+race}}(...)~\mbox{\hyperlink{group__Eina__Future_ga13d85b5282b02260407c103690b2b3f4}{eina\+\_\+promise\+\_\+race\+\_\+array}}((Eina\+\_\+\+Future $\ast$\mbox{[}$\,$\mbox{]})\{\+\_\+\+\_\+\+V\+A\+\_\+\+A\+R\+G\+S\+\_\+\+\_\+, \mbox{\hyperlink{group__Eina__Future_ga1161af18cd7714ab7fd40da2afa39164}{E\+I\+N\+A\+\_\+\+F\+U\+T\+U\+R\+E\+\_\+\+S\+E\+N\+T\+I\+N\+EL}}\})
\begin{DoxyCompactList}\small\item\em A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_ga13d85b5282b02260407c103690b2b3f4}{eina\+\_\+promise\+\_\+race\+\_\+array()}}. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__Future_ga6a39aa29dad9e9ba9038908758f20c32}{eina\+\_\+future\+\_\+race}}(...)~\mbox{\hyperlink{group__Eina__Future_ga2c63774e66100dc5f4b91f88f0efc5f1}{eina\+\_\+future\+\_\+race\+\_\+array}}((Eina\+\_\+\+Future $\ast$\mbox{[}$\,$\mbox{]})\{\+\_\+\+\_\+\+V\+A\+\_\+\+A\+R\+G\+S\+\_\+\+\_\+, \mbox{\hyperlink{group__Eina__Future_ga1161af18cd7714ab7fd40da2afa39164}{E\+I\+N\+A\+\_\+\+F\+U\+T\+U\+R\+E\+\_\+\+S\+E\+N\+T\+I\+N\+EL}}\})
\begin{DoxyCompactList}\small\item\em A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_ga2c63774e66100dc5f4b91f88f0efc5f1}{eina\+\_\+future\+\_\+race\+\_\+array()}}. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__Future_ga70fb993acf2af507103c0c161412767e}{eina\+\_\+future\+\_\+all}}(...)~\mbox{\hyperlink{group__Eina__Future_ga8838591bc2163cac63ba6a5180a63091}{eina\+\_\+future\+\_\+all\+\_\+array}}((Eina\+\_\+\+Future $\ast$\mbox{[}$\,$\mbox{]})\{\+\_\+\+\_\+\+V\+A\+\_\+\+A\+R\+G\+S\+\_\+\+\_\+, \mbox{\hyperlink{group__Eina__Future_ga1161af18cd7714ab7fd40da2afa39164}{E\+I\+N\+A\+\_\+\+F\+U\+T\+U\+R\+E\+\_\+\+S\+E\+N\+T\+I\+N\+EL}}\})
\begin{DoxyCompactList}\small\item\em A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_ga8838591bc2163cac63ba6a5180a63091}{eina\+\_\+future\+\_\+all\+\_\+array()}}. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__Future_gaeffefb72180f300a69bfd3036a16c317}{eina\+\_\+promise\+\_\+all}}(...)~\mbox{\hyperlink{group__Eina__Future_ga17094a3e3dc964ef33313106041dc4e0}{eina\+\_\+promise\+\_\+all\+\_\+array}}((Eina\+\_\+\+Future $\ast$\mbox{[}$\,$\mbox{]})\{\+\_\+\+\_\+\+V\+A\+\_\+\+A\+R\+G\+S\+\_\+\+\_\+, \mbox{\hyperlink{group__Eina__Future_ga1161af18cd7714ab7fd40da2afa39164}{E\+I\+N\+A\+\_\+\+F\+U\+T\+U\+R\+E\+\_\+\+S\+E\+N\+T\+I\+N\+EL}}\})
\begin{DoxyCompactList}\small\item\em A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_ga17094a3e3dc964ef33313106041dc4e0}{eina\+\_\+promise\+\_\+all\+\_\+array()}}. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__Future_ga57f56d13f3f3bb13651ea3b81b59e8f1}{eina\+\_\+future\+\_\+cb\+\_\+easy}}(...)~\mbox{\hyperlink{group__Eina__Future_gaacfe9df476304cd36069907863bf12cc}{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+from\+\_\+desc}}((\mbox{\hyperlink{struct__Eina__Future__Cb__Easy__Desc}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc}})\{\+\_\+\+\_\+\+V\+A\+\_\+\+A\+R\+G\+S\+\_\+\+\_\+\})
\begin{DoxyCompactList}\small\item\em A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_gaacfe9df476304cd36069907863bf12cc}{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+from\+\_\+desc()}}. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__Future_gaeb721d890aa5eac3103a982edde76e9a}{eina\+\_\+future\+\_\+chain}}(\+\_\+prev, ...)~\mbox{\hyperlink{group__Eina__Future_ga5517a17a841d31ad46acf9285a709bbc}{eina\+\_\+future\+\_\+chain\+\_\+array}}(\+\_\+prev, (\mbox{\hyperlink{struct__Eina__Future__Desc}{Eina\+\_\+\+Future\+\_\+\+Desc}}\mbox{[}$\,$\mbox{]})\{\+\_\+\+\_\+\+V\+A\+\_\+\+A\+R\+G\+S\+\_\+\+\_\+, \{.cb = N\+U\+LL, .data = N\+U\+LL\}\})
\begin{DoxyCompactList}\small\item\em A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_ga5517a17a841d31ad46acf9285a709bbc}{eina\+\_\+future\+\_\+chain\+\_\+array()}}. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__Future_ga9f4948790f1f84de93ba8195520d4a92}{eina\+\_\+future\+\_\+then}}(\+\_\+prev, ...)~\mbox{\hyperlink{group__Eina__Future_gae4c1896c7eb8b40933c7b0640c881f33}{eina\+\_\+future\+\_\+then\+\_\+from\+\_\+desc}}(\+\_\+prev, (\mbox{\hyperlink{struct__Eina__Future__Desc}{Eina\+\_\+\+Future\+\_\+\+Desc}})\{\+\_\+\+\_\+\+V\+A\+\_\+\+A\+R\+G\+S\+\_\+\+\_\+\})
\begin{DoxyCompactList}\small\item\em A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_gae4c1896c7eb8b40933c7b0640c881f33}{eina\+\_\+future\+\_\+then\+\_\+from\+\_\+desc()}}. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__Future_ga32414cc629c2b989984394daef6f560b}{eina\+\_\+future\+\_\+cb\+\_\+console}}(...)~\mbox{\hyperlink{group__Eina__Future_gac26cdc858d6252e812b731907de744e9}{eina\+\_\+future\+\_\+cb\+\_\+console\+\_\+from\+\_\+desc}}((\mbox{\hyperlink{struct__Eina__Future__Cb__Console__Desc}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Console\+\_\+\+Desc}})\{\+\_\+\+\_\+\+V\+A\+\_\+\+A\+R\+G\+S\+\_\+\+\_\+\})
\begin{DoxyCompactList}\small\item\em A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_gac26cdc858d6252e812b731907de744e9}{eina\+\_\+future\+\_\+cb\+\_\+console\+\_\+from\+\_\+desc()}}. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__Future_ga14896937e5ae72ac066518d8fe4e483d}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+dbg}}(\+\_\+prefix,  \+\_\+suffix)
\begin{DoxyCompactList}\small\item\em A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc()}}. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__Future_ga91cba9ac4306b0dee948dd3a0b10a893}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+crit}}(\+\_\+prefix,  \+\_\+suffix)
\begin{DoxyCompactList}\small\item\em A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc()}}. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__Future_gade1a19f673ac90442409aba274ff0884}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+err}}(\+\_\+prefix,  \+\_\+suffix)
\begin{DoxyCompactList}\small\item\em A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc()}}. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__Future_gaf3f9d1b140fa23528a74f09e78fadb09}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+info}}(\+\_\+prefix,  \+\_\+suffix)
\begin{DoxyCompactList}\small\item\em A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc()}}. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__Future_ga8ed87813808c62045569f4e09868dbe8}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+warn}}(\+\_\+prefix,  \+\_\+suffix)
\begin{DoxyCompactList}\small\item\em A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc()}}. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__Future_ga1125fb075daa2ac3548ee4a55d69190c}{eina\+\_\+future\+\_\+then\+\_\+easy}}(\+\_\+prev, ...)~\mbox{\hyperlink{group__Eina__Future_gae4c1896c7eb8b40933c7b0640c881f33}{eina\+\_\+future\+\_\+then\+\_\+from\+\_\+desc}}(\+\_\+prev, \mbox{\hyperlink{group__Eina__Future_ga57f56d13f3f3bb13651ea3b81b59e8f1}{eina\+\_\+future\+\_\+cb\+\_\+easy}}(\+\_\+\+\_\+\+V\+A\+\_\+\+A\+R\+G\+S\+\_\+\+\_\+))
\begin{DoxyCompactList}\small\item\em A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_ga9f4948790f1f84de93ba8195520d4a92}{eina\+\_\+future\+\_\+then()}} and \mbox{\hyperlink{group__Eina__Future_ga57f56d13f3f3bb13651ea3b81b59e8f1}{eina\+\_\+future\+\_\+cb\+\_\+easy()}}. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__Future_ga51f933135f14e6e0183af7366aa351d3}{eina\+\_\+future\+\_\+chain\+\_\+easy}}(\+\_\+prev, ...)~\mbox{\hyperlink{group__Eina__Future_ga6b072f800c651b9cdee2aebb788bf7b5}{eina\+\_\+future\+\_\+chain\+\_\+easy\+\_\+array}}(\+\_\+prev, (\mbox{\hyperlink{struct__Eina__Future__Cb__Easy__Desc}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc}}\mbox{[}$\,$\mbox{]}) \{\+\_\+\+\_\+\+V\+A\+\_\+\+A\+R\+G\+S\+\_\+\+\_\+, \{N\+U\+LL, N\+U\+LL, N\+U\+LL, N\+U\+LL, N\+U\+LL\}\})
\begin{DoxyCompactList}\small\item\em A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_gaeb721d890aa5eac3103a982edde76e9a}{eina\+\_\+future\+\_\+chain()}} and \mbox{\hyperlink{group__Eina__Future_ga57f56d13f3f3bb13651ea3b81b59e8f1}{eina\+\_\+future\+\_\+cb\+\_\+easy()}}. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Eina__Future_ga6d7a6889b5f1a9fca02f868c484148e7}\label{group__Eina__Future_ga6d7a6889b5f1a9fca02f868c484148e7}} 
void {\bfseries eina\+\_\+future\+\_\+cancel} (Eina\+\_\+\+Future $\ast$f)
\item 
void \mbox{\hyperlink{group__Eina__Future_ga1266302bb353457961d5dba13a3d617c}{eina\+\_\+future\+\_\+desc\+\_\+flush}} (\mbox{\hyperlink{struct__Eina__Future__Desc}{Eina\+\_\+\+Future\+\_\+\+Desc}} $\ast$desc)
\begin{DoxyCompactList}\small\item\em Flushes an \#\+Eina\+\_\+\+Future\+\_\+\+Desc. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Eina__Future_gabaea3180b463fb87c07b9cbb1fd72f27}{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+desc\+\_\+flush}} (\mbox{\hyperlink{struct__Eina__Future__Cb__Easy__Desc}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc}} $\ast$desc)
\begin{DoxyCompactList}\small\item\em Flushes an \#\+Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Value__Group_ga7985e8af6e956ae31b381bf829173cc0}{Eina\+\_\+\+Value}} \mbox{\hyperlink{group__Eina__Future_ga6151e485fad1e3623c365d11e319d7da}{eina\+\_\+promise\+\_\+as\+\_\+value}} (Eina\+\_\+\+Promise $\ast$p)
\begin{DoxyCompactList}\small\item\em Creates a new Eina\+\_\+\+Value from a promise. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Value__Group_ga7985e8af6e956ae31b381bf829173cc0}{Eina\+\_\+\+Value}} \mbox{\hyperlink{group__Eina__Future_ga6b3b9b94ed2b8d324fe8053a1ff8b926}{eina\+\_\+future\+\_\+as\+\_\+value}} (Eina\+\_\+\+Future $\ast$f)
\begin{DoxyCompactList}\small\item\em Creates an Eina\+\_\+\+Value from a future. \end{DoxyCompactList}\item 
Eina\+\_\+\+Future $\ast$ \mbox{\hyperlink{group__Eina__Future_gaf4fee59b5faafd33965969ac35377cee}{eina\+\_\+future\+\_\+new}} (Eina\+\_\+\+Promise $\ast$p)
\begin{DoxyCompactList}\small\item\em Creates a new future. \end{DoxyCompactList}\item 
Eina\+\_\+\+Future $\ast$ \mbox{\hyperlink{group__Eina__Future_gad2e4b9d0ff885ccc38cd2319d05a7274}{eina\+\_\+future\+\_\+resolved}} (\mbox{\hyperlink{struct__Eina__Future__Scheduler}{Eina\+\_\+\+Future\+\_\+\+Scheduler}} $\ast$scheduler, \mbox{\hyperlink{group__Eina__Value__Group_ga7985e8af6e956ae31b381bf829173cc0}{Eina\+\_\+\+Value}} value)
\begin{DoxyCompactList}\small\item\em Creates a new future that is already resolved to a value. \end{DoxyCompactList}\item 
Eina\+\_\+\+Future $\ast$ \mbox{\hyperlink{group__Eina__Future_ga5b6ad41fa54f3705a987305d18dc3640}{eina\+\_\+future\+\_\+rejected}} (\mbox{\hyperlink{struct__Eina__Future__Scheduler}{Eina\+\_\+\+Future\+\_\+\+Scheduler}} $\ast$scheduler, \mbox{\hyperlink{group__Eina__Error__Group_ga95b3cbb33e987e7d92a81ea785001686}{Eina\+\_\+\+Error}} err)
\begin{DoxyCompactList}\small\item\em Creates a new future that is already rejected to a specified error. \end{DoxyCompactList}\item 
Eina\+\_\+\+Future $\ast$ \mbox{\hyperlink{group__Eina__Future_gae4c1896c7eb8b40933c7b0640c881f33}{eina\+\_\+future\+\_\+then\+\_\+from\+\_\+desc}} (Eina\+\_\+\+Future $\ast$prev, const \mbox{\hyperlink{struct__Eina__Future__Desc}{Eina\+\_\+\+Future\+\_\+\+Desc}} desc)
\begin{DoxyCompactList}\small\item\em Register an Eina\+\_\+\+Future\+\_\+\+Desc to be used when the future is resolve/rejected. \end{DoxyCompactList}\item 
\mbox{\hyperlink{struct__Eina__Future__Desc}{Eina\+\_\+\+Future\+\_\+\+Desc}} \mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc}} (const \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc}} desc)
\begin{DoxyCompactList}\small\item\em Creates an Eina\+\_\+\+Future\+\_\+\+Desc that will log the previous future resolved value. \end{DoxyCompactList}\item 
Eina\+\_\+\+Future $\ast$ \mbox{\hyperlink{group__Eina__Future_ga5517a17a841d31ad46acf9285a709bbc}{eina\+\_\+future\+\_\+chain\+\_\+array}} (Eina\+\_\+\+Future $\ast$prev, const \mbox{\hyperlink{struct__Eina__Future__Desc}{Eina\+\_\+\+Future\+\_\+\+Desc}} descs\mbox{[}$\,$\mbox{]})
\begin{DoxyCompactList}\small\item\em Creates a future chain. \end{DoxyCompactList}\item 
Eina\+\_\+\+Future $\ast$ \mbox{\hyperlink{group__Eina__Future_ga6b072f800c651b9cdee2aebb788bf7b5}{eina\+\_\+future\+\_\+chain\+\_\+easy\+\_\+array}} (Eina\+\_\+\+Future $\ast$prev, const \mbox{\hyperlink{struct__Eina__Future__Cb__Easy__Desc}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc}} descs\mbox{[}$\,$\mbox{]})
\begin{DoxyCompactList}\small\item\em Wrapper around \mbox{\hyperlink{group__Eina__Future_ga5517a17a841d31ad46acf9285a709bbc}{eina\+\_\+future\+\_\+chain\+\_\+array()}} and \mbox{\hyperlink{group__Eina__Future_gaacfe9df476304cd36069907863bf12cc}{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+from\+\_\+desc()}} \end{DoxyCompactList}\item 
\mbox{\hyperlink{struct__Eina__Future__Desc}{Eina\+\_\+\+Future\+\_\+\+Desc}} \mbox{\hyperlink{group__Eina__Future_gac26cdc858d6252e812b731907de744e9}{eina\+\_\+future\+\_\+cb\+\_\+console\+\_\+from\+\_\+desc}} (const \mbox{\hyperlink{struct__Eina__Future__Cb__Console__Desc}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Console\+\_\+\+Desc}} desc)
\begin{DoxyCompactList}\small\item\em Creates an Eina\+\_\+\+Future\+\_\+\+Desc that will print the previous future resolved value. \end{DoxyCompactList}\item 
\mbox{\hyperlink{struct__Eina__Future__Desc}{Eina\+\_\+\+Future\+\_\+\+Desc}} \mbox{\hyperlink{group__Eina__Future_gae9e287741f9aa10b83dc33854e5290b6}{eina\+\_\+future\+\_\+cb\+\_\+ignore\+\_\+error}} (\mbox{\hyperlink{group__Eina__Error__Group_ga95b3cbb33e987e7d92a81ea785001686}{Eina\+\_\+\+Error}} err)
\begin{DoxyCompactList}\small\item\em Returns a \#\+Eina\+\_\+\+Future\+\_\+\+Desc that ignores an error. \end{DoxyCompactList}\item 
\mbox{\hyperlink{struct__Eina__Future__Desc}{Eina\+\_\+\+Future\+\_\+\+Desc}} \mbox{\hyperlink{group__Eina__Future_gaf122d123c6bef58a2f01dbdefab2b19b}{eina\+\_\+future\+\_\+cb\+\_\+convert\+\_\+to}} (const \mbox{\hyperlink{group__Eina__Value__Group_gaab67ab8bcd0624280c5276044b07e0d2}{Eina\+\_\+\+Value\+\_\+\+Type}} $\ast$type)
\begin{DoxyCompactList}\small\item\em Creates an \#\+Eina\+\_\+\+Future\+\_\+\+Desc which will convert the the received eina value to a given type. \end{DoxyCompactList}\item 
\mbox{\hyperlink{struct__Eina__Future__Desc}{Eina\+\_\+\+Future\+\_\+\+Desc}} \mbox{\hyperlink{group__Eina__Future_gaacfe9df476304cd36069907863bf12cc}{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+from\+\_\+desc}} (const \mbox{\hyperlink{struct__Eina__Future__Cb__Easy__Desc}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc}} desc)
\begin{DoxyCompactList}\small\item\em Creates an \#\+Eina\+\_\+\+Future\+\_\+\+Desc based on a \#\+Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc. \end{DoxyCompactList}\item 
Eina\+\_\+\+Promise $\ast$ \mbox{\hyperlink{group__Eina__Future_ga17094a3e3dc964ef33313106041dc4e0}{eina\+\_\+promise\+\_\+all\+\_\+array}} (Eina\+\_\+\+Future $\ast$array\mbox{[}$\,$\mbox{]})
\begin{DoxyCompactList}\small\item\em Creates an all promise. \end{DoxyCompactList}\item 
Eina\+\_\+\+Promise $\ast$ \mbox{\hyperlink{group__Eina__Future_ga13d85b5282b02260407c103690b2b3f4}{eina\+\_\+promise\+\_\+race\+\_\+array}} (Eina\+\_\+\+Future $\ast$array\mbox{[}$\,$\mbox{]})
\begin{DoxyCompactList}\small\item\em Creates a race promise. \end{DoxyCompactList}\item 
static Eina\+\_\+\+Future $\ast$ \mbox{\hyperlink{group__Eina__Future_ga8838591bc2163cac63ba6a5180a63091}{eina\+\_\+future\+\_\+all\+\_\+array}} (Eina\+\_\+\+Future $\ast$array\mbox{[}$\,$\mbox{]})
\begin{DoxyCompactList}\small\item\em Creates a future that will be resolved once all futures from {\ttfamily array} is resolved. \end{DoxyCompactList}\item 
static Eina\+\_\+\+Future $\ast$ \mbox{\hyperlink{group__Eina__Future_ga2c63774e66100dc5f4b91f88f0efc5f1}{eina\+\_\+future\+\_\+race\+\_\+array}} (Eina\+\_\+\+Future $\ast$array\mbox{[}$\,$\mbox{]})
\begin{DoxyCompactList}\small\item\em Creates a future that will be resolved once a future {\ttfamily array} is resolved. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
const \mbox{\hyperlink{group__Eina__Value__Struct__Group_ga69bcc1965b7b57ef713b0370d10f593d}{Eina\+\_\+\+Value\+\_\+\+Struct\+\_\+\+Desc}} $\ast$ \mbox{\hyperlink{group__Eina__Future_ga64c93dabf373a53ecbd56615232a4966}{E\+I\+N\+A\+\_\+\+P\+R\+O\+M\+I\+S\+E\+\_\+\+R\+A\+C\+E\+\_\+\+S\+T\+R\+U\+C\+T\+\_\+\+D\+E\+SC}}
\begin{DoxyCompactList}\small\item\em A pointer to the race struct description, which is used by \mbox{\hyperlink{group__Eina__Future_ga13d85b5282b02260407c103690b2b3f4}{eina\+\_\+promise\+\_\+race\+\_\+array()}};. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} const \mbox{\hyperlink{group__Eina__Value__Struct__Group_ga69bcc1965b7b57ef713b0370d10f593d}{Eina\+\_\+\+Value\+\_\+\+Struct\+\_\+\+Desc}} $\ast$ \mbox{\hyperlink{group__Eina__Future_ga8bf7d696d1a904a74bd5f9504a3c3d9f}{E\+I\+N\+A\+\_\+\+P\+R\+O\+M\+I\+S\+E\+\_\+\+R\+A\+C\+E\+\_\+\+S\+T\+R\+U\+C\+T\+\_\+\+D\+E\+SC}} = \&R\+A\+C\+E\+\_\+\+S\+T\+R\+U\+C\+T\+\_\+\+D\+E\+SC
\begin{DoxyCompactList}\small\item\em A pointer to the race struct description, which is used by \mbox{\hyperlink{group__Eina__Future_ga13d85b5282b02260407c103690b2b3f4}{eina\+\_\+promise\+\_\+race\+\_\+array()}};. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Cancels a future. 

This function will cancel the whole future chain immediately (it will not be schedule to the next mainloop pass) and it will also cancel the promise linked against it. The Eina\+\_\+\+Future\+\_\+\+Cb will be called with an Eina\+\_\+\+Value typed as \mbox{\hyperlink{group__Eina__Value__Group_gace284ef9f3063e831b66f04638c7f465}{E\+I\+N\+A\+\_\+\+V\+A\+L\+U\+E\+\_\+\+T\+Y\+P\+E\+\_\+\+E\+R\+R\+OR}}, which its value will be E\+C\+A\+N\+C\+E\+L\+ED 
\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in,out}  & {\em f} & The future to cancel. \\
\hline
\end{DoxyParams}


\subsection{Macro Definition Documentation}
\mbox{\Hypertarget{group__Eina__Future_ga1161af18cd7714ab7fd40da2afa39164}\label{group__Eina__Future_ga1161af18cd7714ab7fd40da2afa39164}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!E\+I\+N\+A\+\_\+\+F\+U\+T\+U\+R\+E\+\_\+\+S\+E\+N\+T\+I\+N\+EL@{E\+I\+N\+A\+\_\+\+F\+U\+T\+U\+R\+E\+\_\+\+S\+E\+N\+T\+I\+N\+EL}}
\index{E\+I\+N\+A\+\_\+\+F\+U\+T\+U\+R\+E\+\_\+\+S\+E\+N\+T\+I\+N\+EL@{E\+I\+N\+A\+\_\+\+F\+U\+T\+U\+R\+E\+\_\+\+S\+E\+N\+T\+I\+N\+EL}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{E\+I\+N\+A\+\_\+\+F\+U\+T\+U\+R\+E\+\_\+\+S\+E\+N\+T\+I\+N\+EL}{EINA\_FUTURE\_SENTINEL}}
{\footnotesize\ttfamily \#define E\+I\+N\+A\+\_\+\+F\+U\+T\+U\+R\+E\+\_\+\+S\+E\+N\+T\+I\+N\+EL~((void $\ast$)(unsigned long)-\/1)}



Used by \mbox{\hyperlink{group__Eina__Future_ga13d85b5282b02260407c103690b2b3f4}{eina\+\_\+promise\+\_\+race\+\_\+array()}} and \mbox{\hyperlink{group__Eina__Future_ga17094a3e3dc964ef33313106041dc4e0}{eina\+\_\+promise\+\_\+all\+\_\+array()}} and friends to flag the end of the array. 

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga13d85b5282b02260407c103690b2b3f4}{eina\+\_\+promise\+\_\+race\+\_\+array()}} 

\mbox{\hyperlink{group__Eina__Future_ga17094a3e3dc964ef33313106041dc4e0}{eina\+\_\+promise\+\_\+all\+\_\+array()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eina__Future_gac0bf547a87e9bea1e589e8a6e13576e7}\label{group__Eina__Future_gac0bf547a87e9bea1e589e8a6e13576e7}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+promise\+\_\+race@{eina\+\_\+promise\+\_\+race}}
\index{eina\+\_\+promise\+\_\+race@{eina\+\_\+promise\+\_\+race}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+promise\+\_\+race}{eina\_promise\_race}}
{\footnotesize\ttfamily \#define eina\+\_\+promise\+\_\+race(\begin{DoxyParamCaption}\item[{}]{... }\end{DoxyParamCaption})~\mbox{\hyperlink{group__Eina__Future_ga13d85b5282b02260407c103690b2b3f4}{eina\+\_\+promise\+\_\+race\+\_\+array}}((Eina\+\_\+\+Future $\ast$\mbox{[}$\,$\mbox{]})\{\+\_\+\+\_\+\+V\+A\+\_\+\+A\+R\+G\+S\+\_\+\+\_\+, \mbox{\hyperlink{group__Eina__Future_ga1161af18cd7714ab7fd40da2afa39164}{E\+I\+N\+A\+\_\+\+F\+U\+T\+U\+R\+E\+\_\+\+S\+E\+N\+T\+I\+N\+EL}}\})}



A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_ga13d85b5282b02260407c103690b2b3f4}{eina\+\_\+promise\+\_\+race\+\_\+array()}}. 

Usage\+: 
\begin{DoxyCode}
promise = \mbox{\hyperlink{group__Eina__Future_gac0bf547a87e9bea1e589e8a6e13576e7}{eina\_promise\_race}}(future1, future2, future3, future4);
\end{DoxyCode}
 \begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga13d85b5282b02260407c103690b2b3f4}{eina\+\_\+promise\+\_\+race\+\_\+array()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eina__Future_ga6a39aa29dad9e9ba9038908758f20c32}\label{group__Eina__Future_ga6a39aa29dad9e9ba9038908758f20c32}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+race@{eina\+\_\+future\+\_\+race}}
\index{eina\+\_\+future\+\_\+race@{eina\+\_\+future\+\_\+race}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+race}{eina\_future\_race}}
{\footnotesize\ttfamily \#define eina\+\_\+future\+\_\+race(\begin{DoxyParamCaption}\item[{}]{... }\end{DoxyParamCaption})~\mbox{\hyperlink{group__Eina__Future_ga2c63774e66100dc5f4b91f88f0efc5f1}{eina\+\_\+future\+\_\+race\+\_\+array}}((Eina\+\_\+\+Future $\ast$\mbox{[}$\,$\mbox{]})\{\+\_\+\+\_\+\+V\+A\+\_\+\+A\+R\+G\+S\+\_\+\+\_\+, \mbox{\hyperlink{group__Eina__Future_ga1161af18cd7714ab7fd40da2afa39164}{E\+I\+N\+A\+\_\+\+F\+U\+T\+U\+R\+E\+\_\+\+S\+E\+N\+T\+I\+N\+EL}}\})}



A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_ga2c63774e66100dc5f4b91f88f0efc5f1}{eina\+\_\+future\+\_\+race\+\_\+array()}}. 

Usage\+: 
\begin{DoxyCode}
future = \mbox{\hyperlink{group__Eina__Future_ga6a39aa29dad9e9ba9038908758f20c32}{eina\_future\_race}}(future1, future2, future3, future4);
\end{DoxyCode}
 \begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga2c63774e66100dc5f4b91f88f0efc5f1}{eina\+\_\+future\+\_\+race\+\_\+array()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eina__Future_ga70fb993acf2af507103c0c161412767e}\label{group__Eina__Future_ga70fb993acf2af507103c0c161412767e}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+all@{eina\+\_\+future\+\_\+all}}
\index{eina\+\_\+future\+\_\+all@{eina\+\_\+future\+\_\+all}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+all}{eina\_future\_all}}
{\footnotesize\ttfamily \#define eina\+\_\+future\+\_\+all(\begin{DoxyParamCaption}\item[{}]{... }\end{DoxyParamCaption})~\mbox{\hyperlink{group__Eina__Future_ga8838591bc2163cac63ba6a5180a63091}{eina\+\_\+future\+\_\+all\+\_\+array}}((Eina\+\_\+\+Future $\ast$\mbox{[}$\,$\mbox{]})\{\+\_\+\+\_\+\+V\+A\+\_\+\+A\+R\+G\+S\+\_\+\+\_\+, \mbox{\hyperlink{group__Eina__Future_ga1161af18cd7714ab7fd40da2afa39164}{E\+I\+N\+A\+\_\+\+F\+U\+T\+U\+R\+E\+\_\+\+S\+E\+N\+T\+I\+N\+EL}}\})}



A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_ga8838591bc2163cac63ba6a5180a63091}{eina\+\_\+future\+\_\+all\+\_\+array()}}. 

Usage\+: 
\begin{DoxyCode}
future = \mbox{\hyperlink{group__Eina__Future_ga70fb993acf2af507103c0c161412767e}{eina\_future\_all}}(future1, future2, future3, future4);
\end{DoxyCode}
 \begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga8838591bc2163cac63ba6a5180a63091}{eina\+\_\+future\+\_\+all\+\_\+array()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eina__Future_gaeffefb72180f300a69bfd3036a16c317}\label{group__Eina__Future_gaeffefb72180f300a69bfd3036a16c317}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+promise\+\_\+all@{eina\+\_\+promise\+\_\+all}}
\index{eina\+\_\+promise\+\_\+all@{eina\+\_\+promise\+\_\+all}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+promise\+\_\+all}{eina\_promise\_all}}
{\footnotesize\ttfamily \#define eina\+\_\+promise\+\_\+all(\begin{DoxyParamCaption}\item[{}]{... }\end{DoxyParamCaption})~\mbox{\hyperlink{group__Eina__Future_ga17094a3e3dc964ef33313106041dc4e0}{eina\+\_\+promise\+\_\+all\+\_\+array}}((Eina\+\_\+\+Future $\ast$\mbox{[}$\,$\mbox{]})\{\+\_\+\+\_\+\+V\+A\+\_\+\+A\+R\+G\+S\+\_\+\+\_\+, \mbox{\hyperlink{group__Eina__Future_ga1161af18cd7714ab7fd40da2afa39164}{E\+I\+N\+A\+\_\+\+F\+U\+T\+U\+R\+E\+\_\+\+S\+E\+N\+T\+I\+N\+EL}}\})}



A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_ga17094a3e3dc964ef33313106041dc4e0}{eina\+\_\+promise\+\_\+all\+\_\+array()}}. 

Usage\+: 
\begin{DoxyCode}
promise = \mbox{\hyperlink{group__Eina__Future_gaeffefb72180f300a69bfd3036a16c317}{eina\_promise\_all}}(future1, future2, future3, future4);
\end{DoxyCode}
 \begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga17094a3e3dc964ef33313106041dc4e0}{eina\+\_\+promise\+\_\+all\+\_\+array()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eina__Future_ga57f56d13f3f3bb13651ea3b81b59e8f1}\label{group__Eina__Future_ga57f56d13f3f3bb13651ea3b81b59e8f1}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+cb\+\_\+easy@{eina\+\_\+future\+\_\+cb\+\_\+easy}}
\index{eina\+\_\+future\+\_\+cb\+\_\+easy@{eina\+\_\+future\+\_\+cb\+\_\+easy}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+cb\+\_\+easy}{eina\_future\_cb\_easy}}
{\footnotesize\ttfamily \#define eina\+\_\+future\+\_\+cb\+\_\+easy(\begin{DoxyParamCaption}\item[{}]{... }\end{DoxyParamCaption})~\mbox{\hyperlink{group__Eina__Future_gaacfe9df476304cd36069907863bf12cc}{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+from\+\_\+desc}}((\mbox{\hyperlink{struct__Eina__Future__Cb__Easy__Desc}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc}})\{\+\_\+\+\_\+\+V\+A\+\_\+\+A\+R\+G\+S\+\_\+\+\_\+\})}



A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_gaacfe9df476304cd36069907863bf12cc}{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+from\+\_\+desc()}}. 

Usage\+: 
\begin{DoxyCode}
future\_desc = \mbox{\hyperlink{group__Eina__Future_ga57f56d13f3f3bb13651ea3b81b59e8f1}{eina\_future\_cb\_easy}}(\_success\_cb, \_error\_cb, \_free\_cb, 
      \mbox{\hyperlink{group__Eina__Value__Group_ga17974fd9ab773a3efefd591ffde58f77}{EINA\_VALUE\_TYPE\_INT}}, my\_data);
\end{DoxyCode}
 \begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_gaacfe9df476304cd36069907863bf12cc}{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+from\+\_\+desc()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eina__Future_gaeb721d890aa5eac3103a982edde76e9a}\label{group__Eina__Future_gaeb721d890aa5eac3103a982edde76e9a}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+chain@{eina\+\_\+future\+\_\+chain}}
\index{eina\+\_\+future\+\_\+chain@{eina\+\_\+future\+\_\+chain}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+chain}{eina\_future\_chain}}
{\footnotesize\ttfamily \#define eina\+\_\+future\+\_\+chain(\begin{DoxyParamCaption}\item[{}]{\+\_\+prev,  }\item[{}]{... }\end{DoxyParamCaption})~\mbox{\hyperlink{group__Eina__Future_ga5517a17a841d31ad46acf9285a709bbc}{eina\+\_\+future\+\_\+chain\+\_\+array}}(\+\_\+prev, (\mbox{\hyperlink{struct__Eina__Future__Desc}{Eina\+\_\+\+Future\+\_\+\+Desc}}\mbox{[}$\,$\mbox{]})\{\+\_\+\+\_\+\+V\+A\+\_\+\+A\+R\+G\+S\+\_\+\+\_\+, \{.cb = N\+U\+LL, .data = N\+U\+LL\}\})}



A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_ga5517a17a841d31ad46acf9285a709bbc}{eina\+\_\+future\+\_\+chain\+\_\+array()}}. 

Usage\+: 
\begin{DoxyCode}
future = \mbox{\hyperlink{group__Eina__Future_gaeb721d890aa5eac3103a982edde76e9a}{eina\_future\_chain}}(future, \{.cb = \_my\_cb, .data = my\_data\}, \{.cb = \_my\_another\_cb,
       .data = NULL\});
\end{DoxyCode}
 \begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga5517a17a841d31ad46acf9285a709bbc}{eina\+\_\+future\+\_\+chain\+\_\+array()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eina__Future_ga9f4948790f1f84de93ba8195520d4a92}\label{group__Eina__Future_ga9f4948790f1f84de93ba8195520d4a92}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+then@{eina\+\_\+future\+\_\+then}}
\index{eina\+\_\+future\+\_\+then@{eina\+\_\+future\+\_\+then}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+then}{eina\_future\_then}}
{\footnotesize\ttfamily \#define eina\+\_\+future\+\_\+then(\begin{DoxyParamCaption}\item[{}]{\+\_\+prev,  }\item[{}]{... }\end{DoxyParamCaption})~\mbox{\hyperlink{group__Eina__Future_gae4c1896c7eb8b40933c7b0640c881f33}{eina\+\_\+future\+\_\+then\+\_\+from\+\_\+desc}}(\+\_\+prev, (\mbox{\hyperlink{struct__Eina__Future__Desc}{Eina\+\_\+\+Future\+\_\+\+Desc}})\{\+\_\+\+\_\+\+V\+A\+\_\+\+A\+R\+G\+S\+\_\+\+\_\+\})}



A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_gae4c1896c7eb8b40933c7b0640c881f33}{eina\+\_\+future\+\_\+then\+\_\+from\+\_\+desc()}}. 

Usage\+: 
\begin{DoxyCode}
future = \mbox{\hyperlink{group__Eina__Future_ga9f4948790f1f84de93ba8195520d4a92}{eina\_future\_then}}(future, \_my\_cb, my\_data);
\end{DoxyCode}
 \begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_gae4c1896c7eb8b40933c7b0640c881f33}{eina\+\_\+future\+\_\+then\+\_\+from\+\_\+desc()}} 

\mbox{\hyperlink{group__Eina__Future_ga1125fb075daa2ac3548ee4a55d69190c}{eina\+\_\+future\+\_\+then\+\_\+easy()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eina__Future_ga32414cc629c2b989984394daef6f560b}\label{group__Eina__Future_ga32414cc629c2b989984394daef6f560b}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+cb\+\_\+console@{eina\+\_\+future\+\_\+cb\+\_\+console}}
\index{eina\+\_\+future\+\_\+cb\+\_\+console@{eina\+\_\+future\+\_\+cb\+\_\+console}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+cb\+\_\+console}{eina\_future\_cb\_console}}
{\footnotesize\ttfamily \#define eina\+\_\+future\+\_\+cb\+\_\+console(\begin{DoxyParamCaption}\item[{}]{... }\end{DoxyParamCaption})~\mbox{\hyperlink{group__Eina__Future_gac26cdc858d6252e812b731907de744e9}{eina\+\_\+future\+\_\+cb\+\_\+console\+\_\+from\+\_\+desc}}((\mbox{\hyperlink{struct__Eina__Future__Cb__Console__Desc}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Console\+\_\+\+Desc}})\{\+\_\+\+\_\+\+V\+A\+\_\+\+A\+R\+G\+S\+\_\+\+\_\+\})}



A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_gac26cdc858d6252e812b731907de744e9}{eina\+\_\+future\+\_\+cb\+\_\+console\+\_\+from\+\_\+desc()}}. 

Usage\+: 
\begin{DoxyCode}
desc = \mbox{\hyperlink{group__Eina__Future_ga32414cc629c2b989984394daef6f560b}{eina\_future\_cb\_console}}(.prefix = \textcolor{stringliteral}{"prefix"}, .suffix = \textcolor{stringliteral}{"suffix"});
\end{DoxyCode}
 \begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_gac26cdc858d6252e812b731907de744e9}{eina\+\_\+future\+\_\+cb\+\_\+console\+\_\+from\+\_\+desc()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eina__Future_ga14896937e5ae72ac066518d8fe4e483d}\label{group__Eina__Future_ga14896937e5ae72ac066518d8fe4e483d}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+dbg@{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+dbg}}
\index{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+dbg@{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+dbg}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+dbg}{eina\_future\_cb\_log\_dbg}}
{\footnotesize\ttfamily \#define eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+dbg(\begin{DoxyParamCaption}\item[{}]{\+\_\+prefix,  }\item[{}]{\+\_\+suffix }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}
\mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\_future\_cb\_log\_from\_desc}}((
      \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc}{Eina\_Future\_Cb\_Log\_Desc}})\{\_prefix, \_suffix, \_\_FILE\_\_, \(\backslash\)
         \_\_FUNCTION\_\_, \mbox{\hyperlink{group__Eina__Log__Group_gga326699509b2e7578ace7c0a15b4a8c1aafdc5a5cfb78f5e4d5851447ed798af50}{EINA\_LOG\_LEVEL\_DBG}}, 
      \mbox{\hyperlink{group__Eina__Log__Group_ga41d6e3b51ce5f50ef403428776a02626}{EINA\_LOG\_DOMAIN\_DEFAULT}}, \_\_LINE\_\_\})
\end{DoxyCode}


A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc()}}. 

This macro will set the following fields of the \#\+Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+:

\begin{DoxyItemize}
\item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_a2b5cdedfc4bcd383d341fc9bb816fb46}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::file}}\+: The {\bfseries F\+I\+LE} function will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_ac40ef8a65fbdec71615d6327b588f135}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::func}}\+: The {\bfseries F\+U\+N\+C\+T\+I\+ON} macro will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_a160bbd8d35b40b00d0ef41d9d283101c}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::level}}\+: E\+I\+N\+A\+\_\+\+L\+O\+G\+\_\+\+L\+E\+V\+E\+L\+\_\+\+D\+BG will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_ae20c3c17ec8f6c62b5041d26b6b17b8c}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::domain}}\+: E\+I\+N\+A\+\_\+\+L\+O\+G\+\_\+\+D\+O\+M\+A\+I\+N\+\_\+\+D\+E\+F\+A\+U\+LT will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_a2cab78b0d653b250d7b68f8ffb848c5a}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::line}}\+: The {\bfseries L\+I\+NE} macro will be used.\end{DoxyItemize}
Usage\+: 
\begin{DoxyCode}
desc = \mbox{\hyperlink{group__Eina__Future_ga14896937e5ae72ac066518d8fe4e483d}{eina\_future\_cb\_log\_dbg}}(.prefix = \textcolor{stringliteral}{"prefix"}, .suffix = \textcolor{stringliteral}{"suffix"});
\end{DoxyCode}
 \begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eina__Future_ga91cba9ac4306b0dee948dd3a0b10a893}\label{group__Eina__Future_ga91cba9ac4306b0dee948dd3a0b10a893}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+crit@{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+crit}}
\index{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+crit@{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+crit}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+crit}{eina\_future\_cb\_log\_crit}}
{\footnotesize\ttfamily \#define eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+crit(\begin{DoxyParamCaption}\item[{}]{\+\_\+prefix,  }\item[{}]{\+\_\+suffix }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}
\mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\_future\_cb\_log\_from\_desc}}((
      \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc}{Eina\_Future\_Cb\_Log\_Desc}})\{\_prefix, \_suffix, \_\_FILE\_\_, \(\backslash\)
         \_\_FUNCTION\_\_, \mbox{\hyperlink{group__Eina__Log__Group_gga326699509b2e7578ace7c0a15b4a8c1aa620ee82716c2c262ad2929823cf24ebd}{EINA\_LOG\_LEVEL\_CRITICAL}}, 
      \mbox{\hyperlink{group__Eina__Log__Group_ga41d6e3b51ce5f50ef403428776a02626}{EINA\_LOG\_DOMAIN\_DEFAULT}}, \_\_LINE\_\_\})
\end{DoxyCode}


A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc()}}. 

This macro will set the following fields of the \#\+Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+:

\begin{DoxyItemize}
\item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_a2b5cdedfc4bcd383d341fc9bb816fb46}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::file}}\+: The {\bfseries F\+I\+LE} function will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_ac40ef8a65fbdec71615d6327b588f135}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::func}}\+: The {\bfseries F\+U\+N\+C\+T\+I\+ON} macro will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_a160bbd8d35b40b00d0ef41d9d283101c}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::level}}\+: E\+I\+N\+A\+\_\+\+L\+O\+G\+\_\+\+L\+E\+V\+E\+L\+\_\+\+C\+R\+I\+T\+I\+C\+AL will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_ae20c3c17ec8f6c62b5041d26b6b17b8c}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::domain}}\+: E\+I\+N\+A\+\_\+\+L\+O\+G\+\_\+\+D\+O\+M\+A\+I\+N\+\_\+\+D\+E\+F\+A\+U\+LT will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_a2cab78b0d653b250d7b68f8ffb848c5a}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::line}}\+: The {\bfseries L\+I\+NE} macro will be used.\end{DoxyItemize}
Usage\+: 
\begin{DoxyCode}
desc = \mbox{\hyperlink{group__Eina__Future_ga91cba9ac4306b0dee948dd3a0b10a893}{eina\_future\_cb\_log\_crit}}(.prefix = \textcolor{stringliteral}{"prefix"}, .suffix = \textcolor{stringliteral}{"suffix"});
\end{DoxyCode}
 \begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eina__Future_gade1a19f673ac90442409aba274ff0884}\label{group__Eina__Future_gade1a19f673ac90442409aba274ff0884}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+err@{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+err}}
\index{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+err@{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+err}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+err}{eina\_future\_cb\_log\_err}}
{\footnotesize\ttfamily \#define eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+err(\begin{DoxyParamCaption}\item[{}]{\+\_\+prefix,  }\item[{}]{\+\_\+suffix }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}
\mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\_future\_cb\_log\_from\_desc}}((
      \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc}{Eina\_Future\_Cb\_Log\_Desc}})\{\_prefix, \_suffix, \_\_FILE\_\_, \(\backslash\)
         \_\_FUNCTION\_\_, \mbox{\hyperlink{group__Eina__Log__Group_gga326699509b2e7578ace7c0a15b4a8c1aa8252243003214c2e38a3b228fc85eb80}{EINA\_LOG\_LEVEL\_ERR}}, 
      \mbox{\hyperlink{group__Eina__Log__Group_ga41d6e3b51ce5f50ef403428776a02626}{EINA\_LOG\_DOMAIN\_DEFAULT}}, \_\_LINE\_\_\})
\end{DoxyCode}


A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc()}}. 

This macro will set the following fields of the \#\+Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+:

\begin{DoxyItemize}
\item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_a2b5cdedfc4bcd383d341fc9bb816fb46}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::file}}\+: The {\bfseries F\+I\+LE} function will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_ac40ef8a65fbdec71615d6327b588f135}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::func}}\+: The {\bfseries F\+U\+N\+C\+T\+I\+ON} macro will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_a160bbd8d35b40b00d0ef41d9d283101c}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::level}}\+: E\+I\+N\+A\+\_\+\+L\+O\+G\+\_\+\+L\+E\+V\+E\+L\+\_\+\+E\+RR will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_ae20c3c17ec8f6c62b5041d26b6b17b8c}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::domain}}\+: E\+I\+N\+A\+\_\+\+L\+O\+G\+\_\+\+D\+O\+M\+A\+I\+N\+\_\+\+D\+E\+F\+A\+U\+LT will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_a2cab78b0d653b250d7b68f8ffb848c5a}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::line}}\+: The {\bfseries L\+I\+NE} macro will be used.\end{DoxyItemize}
Usage\+: 
\begin{DoxyCode}
desc = \mbox{\hyperlink{group__Eina__Future_gade1a19f673ac90442409aba274ff0884}{eina\_future\_cb\_log\_err}}(.prefix = \textcolor{stringliteral}{"prefix"}, .suffix = \textcolor{stringliteral}{"suffix"});
\end{DoxyCode}
 \begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eina__Future_gaf3f9d1b140fa23528a74f09e78fadb09}\label{group__Eina__Future_gaf3f9d1b140fa23528a74f09e78fadb09}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+info@{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+info}}
\index{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+info@{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+info}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+info}{eina\_future\_cb\_log\_info}}
{\footnotesize\ttfamily \#define eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+info(\begin{DoxyParamCaption}\item[{}]{\+\_\+prefix,  }\item[{}]{\+\_\+suffix }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}
\mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\_future\_cb\_log\_from\_desc}}((
      \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc}{Eina\_Future\_Cb\_Log\_Desc}})\{\_prefix, \_suffix, \_\_FILE\_\_, \(\backslash\)
         \_\_FUNCTION\_\_, \mbox{\hyperlink{group__Eina__Log__Group_gga326699509b2e7578ace7c0a15b4a8c1aa0368139789af856a6ad9bbe4f21d195f}{EINA\_LOG\_LEVEL\_INFO}}, 
      \mbox{\hyperlink{group__Eina__Log__Group_ga41d6e3b51ce5f50ef403428776a02626}{EINA\_LOG\_DOMAIN\_DEFAULT}}, \_\_LINE\_\_\})
\end{DoxyCode}


A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc()}}. 

This macro will set the following fields of the \#\+Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+:

\begin{DoxyItemize}
\item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_a2b5cdedfc4bcd383d341fc9bb816fb46}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::file}}\+: The {\bfseries F\+I\+LE} function will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_ac40ef8a65fbdec71615d6327b588f135}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::func}}\+: The {\bfseries F\+U\+N\+C\+T\+I\+ON} macro will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_a160bbd8d35b40b00d0ef41d9d283101c}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::level}}\+: E\+I\+N\+A\+\_\+\+L\+O\+G\+\_\+\+L\+E\+V\+E\+L\+\_\+\+I\+N\+FO will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_ae20c3c17ec8f6c62b5041d26b6b17b8c}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::domain}}\+: E\+I\+N\+A\+\_\+\+L\+O\+G\+\_\+\+D\+O\+M\+A\+I\+N\+\_\+\+D\+E\+F\+A\+U\+LT will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_a2cab78b0d653b250d7b68f8ffb848c5a}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::line}}\+: The {\bfseries L\+I\+NE} macro will be used.\end{DoxyItemize}
Usage\+: 
\begin{DoxyCode}
desc = \mbox{\hyperlink{group__Eina__Future_gaf3f9d1b140fa23528a74f09e78fadb09}{eina\_future\_cb\_log\_info}}(.prefix = \textcolor{stringliteral}{"prefix"}, .suffix = \textcolor{stringliteral}{"suffix"});
\end{DoxyCode}
 \begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eina__Future_ga8ed87813808c62045569f4e09868dbe8}\label{group__Eina__Future_ga8ed87813808c62045569f4e09868dbe8}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+warn@{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+warn}}
\index{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+warn@{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+warn}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+warn}{eina\_future\_cb\_log\_warn}}
{\footnotesize\ttfamily \#define eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+warn(\begin{DoxyParamCaption}\item[{}]{\+\_\+prefix,  }\item[{}]{\+\_\+suffix }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}
\mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\_future\_cb\_log\_from\_desc}}((
      \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc}{Eina\_Future\_Cb\_Log\_Desc}})\{\_prefix, \_suffix, \_\_FILE\_\_, \(\backslash\)
         \_\_FUNCTION\_\_, \mbox{\hyperlink{group__Eina__Log__Group_gga326699509b2e7578ace7c0a15b4a8c1aae6fda047b87c6d22a23cbb7143dd2fe8}{EINA\_LOG\_LEVEL\_WARN}}, 
      \mbox{\hyperlink{group__Eina__Log__Group_ga41d6e3b51ce5f50ef403428776a02626}{EINA\_LOG\_DOMAIN\_DEFAULT}}, \_\_LINE\_\_\})
\end{DoxyCode}


A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc()}}. 

This macro will set the following fields of the \#\+Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+:

\begin{DoxyItemize}
\item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_a2b5cdedfc4bcd383d341fc9bb816fb46}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::file}}\+: The {\bfseries F\+I\+LE} function will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_ac40ef8a65fbdec71615d6327b588f135}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::func}}\+: The {\bfseries F\+U\+N\+C\+T\+I\+ON} macro will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_a160bbd8d35b40b00d0ef41d9d283101c}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::level}}\+: E\+I\+N\+A\+\_\+\+L\+O\+G\+\_\+\+L\+E\+V\+E\+L\+\_\+\+W\+A\+RN will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_ae20c3c17ec8f6c62b5041d26b6b17b8c}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::domain}}\+: E\+I\+N\+A\+\_\+\+L\+O\+G\+\_\+\+D\+O\+M\+A\+I\+N\+\_\+\+D\+E\+F\+A\+U\+LT will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_a2cab78b0d653b250d7b68f8ffb848c5a}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::line}}\+: The {\bfseries L\+I\+NE} macro will be used.\end{DoxyItemize}
Usage\+: 
\begin{DoxyCode}
desc = \mbox{\hyperlink{group__Eina__Future_ga8ed87813808c62045569f4e09868dbe8}{eina\_future\_cb\_log\_warn}}(.prefix = \textcolor{stringliteral}{"prefix"}, .suffix = \textcolor{stringliteral}{"suffix"});
\end{DoxyCode}
 \begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eina__Future_ga1125fb075daa2ac3548ee4a55d69190c}\label{group__Eina__Future_ga1125fb075daa2ac3548ee4a55d69190c}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+then\+\_\+easy@{eina\+\_\+future\+\_\+then\+\_\+easy}}
\index{eina\+\_\+future\+\_\+then\+\_\+easy@{eina\+\_\+future\+\_\+then\+\_\+easy}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+then\+\_\+easy}{eina\_future\_then\_easy}}
{\footnotesize\ttfamily \#define eina\+\_\+future\+\_\+then\+\_\+easy(\begin{DoxyParamCaption}\item[{}]{\+\_\+prev,  }\item[{}]{... }\end{DoxyParamCaption})~\mbox{\hyperlink{group__Eina__Future_gae4c1896c7eb8b40933c7b0640c881f33}{eina\+\_\+future\+\_\+then\+\_\+from\+\_\+desc}}(\+\_\+prev, \mbox{\hyperlink{group__Eina__Future_ga57f56d13f3f3bb13651ea3b81b59e8f1}{eina\+\_\+future\+\_\+cb\+\_\+easy}}(\+\_\+\+\_\+\+V\+A\+\_\+\+A\+R\+G\+S\+\_\+\+\_\+))}



A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_ga9f4948790f1f84de93ba8195520d4a92}{eina\+\_\+future\+\_\+then()}} and \mbox{\hyperlink{group__Eina__Future_ga57f56d13f3f3bb13651ea3b81b59e8f1}{eina\+\_\+future\+\_\+cb\+\_\+easy()}}. 

Usage\+: 
\begin{DoxyCode}
f = \mbox{\hyperlink{group__Eina__Future_ga1125fb075daa2ac3548ee4a55d69190c}{eina\_future\_then\_easy}}(f, .success = \_success\_cb, .success\_type = 
      \mbox{\hyperlink{group__Eina__Value__Group_ga959961fb03cd94a84ab469245c543732}{EINA\_VALUE\_TYPE\_DOUBLE}}, .data = NULL, );
\end{DoxyCode}
 \begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_gae4c1896c7eb8b40933c7b0640c881f33}{eina\+\_\+future\+\_\+then\+\_\+from\+\_\+desc()}} 

eina\+\_\+future\+\_\+easy() 

\mbox{\hyperlink{group__Eina__Future_ga9f4948790f1f84de93ba8195520d4a92}{eina\+\_\+future\+\_\+then()}} 

\mbox{\hyperlink{group__Eina__Future_gaacfe9df476304cd36069907863bf12cc}{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+from\+\_\+desc()}} 
\end{DoxySeeAlso}


Referenced by elm\+\_\+cnp\+\_\+selection\+\_\+set().

\mbox{\Hypertarget{group__Eina__Future_ga51f933135f14e6e0183af7366aa351d3}\label{group__Eina__Future_ga51f933135f14e6e0183af7366aa351d3}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+chain\+\_\+easy@{eina\+\_\+future\+\_\+chain\+\_\+easy}}
\index{eina\+\_\+future\+\_\+chain\+\_\+easy@{eina\+\_\+future\+\_\+chain\+\_\+easy}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+chain\+\_\+easy}{eina\_future\_chain\_easy}}
{\footnotesize\ttfamily \#define eina\+\_\+future\+\_\+chain\+\_\+easy(\begin{DoxyParamCaption}\item[{}]{\+\_\+prev,  }\item[{}]{... }\end{DoxyParamCaption})~\mbox{\hyperlink{group__Eina__Future_ga6b072f800c651b9cdee2aebb788bf7b5}{eina\+\_\+future\+\_\+chain\+\_\+easy\+\_\+array}}(\+\_\+prev, (\mbox{\hyperlink{struct__Eina__Future__Cb__Easy__Desc}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc}}\mbox{[}$\,$\mbox{]}) \{\+\_\+\+\_\+\+V\+A\+\_\+\+A\+R\+G\+S\+\_\+\+\_\+, \{N\+U\+LL, N\+U\+LL, N\+U\+LL, N\+U\+LL, N\+U\+LL\}\})}



A syntactic sugar over \mbox{\hyperlink{group__Eina__Future_gaeb721d890aa5eac3103a982edde76e9a}{eina\+\_\+future\+\_\+chain()}} and \mbox{\hyperlink{group__Eina__Future_ga57f56d13f3f3bb13651ea3b81b59e8f1}{eina\+\_\+future\+\_\+cb\+\_\+easy()}}. 

Usage\+: 
\begin{DoxyCode}
f = \mbox{\hyperlink{group__Eina__Future_ga51f933135f14e6e0183af7366aa351d3}{eina\_future\_chain\_easy}}(f, \{.success = \_success\_cb, .success\_type = 
      \mbox{\hyperlink{group__Eina__Value__Group_ga959961fb03cd94a84ab469245c543732}{EINA\_VALUE\_TYPE\_DOUBLE}}, .data = NULL\},
                              \{ .success = \_success2\_cb \}, \{.error = error\_cb\});
\end{DoxyCode}
 \begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga5517a17a841d31ad46acf9285a709bbc}{eina\+\_\+future\+\_\+chain\+\_\+array()}} 

eina\+\_\+future\+\_\+easy() 

\mbox{\hyperlink{group__Eina__Future_ga6b072f800c651b9cdee2aebb788bf7b5}{eina\+\_\+future\+\_\+chain\+\_\+easy\+\_\+array()}} 

\mbox{\hyperlink{group__Eina__Future_gaacfe9df476304cd36069907863bf12cc}{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+from\+\_\+desc()}} 
\end{DoxySeeAlso}


\subsection{Function Documentation}
\mbox{\Hypertarget{group__Eina__Future_ga1266302bb353457961d5dba13a3d617c}\label{group__Eina__Future_ga1266302bb353457961d5dba13a3d617c}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+desc\+\_\+flush@{eina\+\_\+future\+\_\+desc\+\_\+flush}}
\index{eina\+\_\+future\+\_\+desc\+\_\+flush@{eina\+\_\+future\+\_\+desc\+\_\+flush}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+desc\+\_\+flush()}{eina\_future\_desc\_flush()}}
{\footnotesize\ttfamily void eina\+\_\+future\+\_\+desc\+\_\+flush (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{struct__Eina__Future__Desc}{Eina\+\_\+\+Future\+\_\+\+Desc}} $\ast$}]{desc }\end{DoxyParamCaption})}



Flushes an \#\+Eina\+\_\+\+Future\+\_\+\+Desc. 

This function is mainly used by bindings to flush a \#\+Eina\+\_\+\+Future\+\_\+\+Desc. It will call the \mbox{\hyperlink{group__Eina__Promise_gad3a38a209f2112fbe1eb111e0d3ff939}{Eina\+\_\+\+Future\+\_\+\+Cb}} with {\ttfamily E\+N\+O\+M\+EM} and zero the {\ttfamily desc} contents.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in,out}  & {\em desc} & The \#\+Eina\+\_\+\+Future\+\_\+\+Desc to flush, if {\ttfamily N\+U\+LL} this is a noop. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Eina__Future_gabaea3180b463fb87c07b9cbb1fd72f27}\label{group__Eina__Future_gabaea3180b463fb87c07b9cbb1fd72f27}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+desc\+\_\+flush@{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+desc\+\_\+flush}}
\index{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+desc\+\_\+flush@{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+desc\+\_\+flush}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+desc\+\_\+flush()}{eina\_future\_cb\_easy\_desc\_flush()}}
{\footnotesize\ttfamily void eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+desc\+\_\+flush (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{struct__Eina__Future__Cb__Easy__Desc}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc}} $\ast$}]{desc }\end{DoxyParamCaption})}



Flushes an \#\+Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc. 

This function is mainly used by bindings to flush a \#\+Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc. It will call the \mbox{\hyperlink{group__Eina__Promise_gaa851e400869a2ca7b072d348175bd83f}{Eina\+\_\+\+Future\+\_\+\+Error\+\_\+\+Cb}} with {\ttfamily E\+N\+O\+M\+EM}, the \mbox{\hyperlink{group__Eina__Promise_ga8d3d898f0c73827404fc2e258767a6c7}{Eina\+\_\+\+Future\+\_\+\+Free\+\_\+\+Cb}} and zero the {\ttfamily desc} contents.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in,out}  & {\em desc} & The \#\+Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc to flush, if {\ttfamily N\+U\+LL} this is a noop. \\
\hline
\end{DoxyParams}


References \+\_\+\+Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc\+::data, eina\+\_\+value\+\_\+flush(), \+\_\+\+Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc\+::error, and \+\_\+\+Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc\+::free.

\mbox{\Hypertarget{group__Eina__Future_ga6151e485fad1e3623c365d11e319d7da}\label{group__Eina__Future_ga6151e485fad1e3623c365d11e319d7da}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+promise\+\_\+as\+\_\+value@{eina\+\_\+promise\+\_\+as\+\_\+value}}
\index{eina\+\_\+promise\+\_\+as\+\_\+value@{eina\+\_\+promise\+\_\+as\+\_\+value}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+promise\+\_\+as\+\_\+value()}{eina\_promise\_as\_value()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Value__Group_ga7985e8af6e956ae31b381bf829173cc0}{Eina\+\_\+\+Value}} eina\+\_\+promise\+\_\+as\+\_\+value (\begin{DoxyParamCaption}\item[{Eina\+\_\+\+Promise $\ast$}]{p }\end{DoxyParamCaption})}



Creates a new Eina\+\_\+\+Value from a promise. 

This function creates a new Eina\+\_\+\+Value that will store a promise in it. This function is useful for dealing with promises inside a \mbox{\hyperlink{group__Eina__Promise_gad3a38a209f2112fbe1eb111e0d3ff939}{Eina\+\_\+\+Future\+\_\+\+Cb}}. By returning a Promise Eina\+\_\+\+Value the whole chain will wait until the promise is resolved in order to continue its execution. Example\+:


\begin{DoxyCode}
\textcolor{keyword}{static} \mbox{\hyperlink{struct__Eina__Value}{Eina\_Value}}
\_file\_data\_ready(\textcolor{keyword}{const} *data \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \textcolor{keyword}{const} \mbox{\hyperlink{struct__Eina__Value}{Eina\_Value}} v, \textcolor{keyword}{const} Eina\_Future *dead 
      \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})
\{
   \textcolor{keyword}{const} \textcolor{keywordtype}{char} *file\_data;
   Eina\_Promise *p;
   \textcolor{comment}{// It was not possible to fetch the file size.}
   \textcolor{keywordflow}{if} (v.type == \mbox{\hyperlink{group__Eina__Value__Group_ga28f6fb160baf3068e7c67ffba0a29c20}{EINA\_VALUE\_TYPE\_ERROR}})
   \{
      \mbox{\hyperlink{group__Eina__Error__Group_ga95b3cbb33e987e7d92a81ea785001686}{Eina\_Error}} err;
      \mbox{\hyperlink{group__Eina__Value__Value__Group_ga6f088fe6c6127d808cdf214b355cbdeb}{eina\_value\_get}}(&v, &err);
      fprintf(stderr, \textcolor{stringliteral}{"Could get the file data. Reason: %s\(\backslash\)n"}, 
      \mbox{\hyperlink{group__Eina__Error__Group_ga3402bc58a9f854391eb35fa7650edda5}{eina\_error\_msg\_get}}(err));
      \mbox{\hyperlink{group__Ecore__Main__Loop__Group_ga95cf8e97dff0716433c2c5474d606a98}{ecore\_main\_loop\_quit}}();
      \textcolor{keywordflow}{return} v;
   \}
   \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (v.type != \mbox{\hyperlink{group__Eina__Value__Group_ga916f76c8d5ffd4c3ee3c322a54efd0b7}{EINA\_VALUE\_TYPE\_STRING}})
   \{
     fprintf(stderr, \textcolor{stringliteral}{"Expecting type '%s' - received '%s'\(\backslash\)n"}, 
      \mbox{\hyperlink{group__Eina__Value__Group_ga916f76c8d5ffd4c3ee3c322a54efd0b7}{EINA\_VALUE\_TYPE\_STRING}}->\mbox{\hyperlink{struct__Eina__Value__Type_ada10b4da2ce18ea23e10dc048f470af0}{name}}, v.type->name);
     \mbox{\hyperlink{group__Ecore__Main__Loop__Group_ga95cf8e97dff0716433c2c5474d606a98}{ecore\_main\_loop\_quit}}();
     \textcolor{keywordflow}{return} v;
   \}

   \mbox{\hyperlink{group__Eina__Value__Value__Group_ga6f088fe6c6127d808cdf214b355cbdeb}{eina\_value\_get}}(&v, &file\_data);
   \textcolor{comment}{// count\_words will count the words in the background and resolve the promise once it is over...}
   p = count\_words(file\_data);
   \textcolor{keywordflow}{return} \mbox{\hyperlink{group__Eina__Future_ga6151e485fad1e3623c365d11e319d7da}{eina\_promise\_as\_value}}(p);
\}

\textcolor{keyword}{static} \mbox{\hyperlink{struct__Eina__Value}{Eina\_Value}}
\_word\_count\_ready(\textcolor{keyword}{const} *data \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \textcolor{keyword}{const} \mbox{\hyperlink{struct__Eina__Value}{Eina\_Value}} v, \textcolor{keyword}{const} Eina\_Future *dead
       \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})
\{
   \textcolor{comment}{// The \_word\_count\_ready will only be called once count\_words() resolves/rejects the promise returned by
       \_file\_data\_ready()}
   \textcolor{keywordtype}{int} count;
   \textcolor{keywordflow}{if} (v.type == \mbox{\hyperlink{group__Eina__Value__Group_ga28f6fb160baf3068e7c67ffba0a29c20}{EINA\_VALUE\_TYPE\_ERROR}})
   \{
      \mbox{\hyperlink{group__Eina__Error__Group_ga95b3cbb33e987e7d92a81ea785001686}{Eina\_Error}} err;
      \mbox{\hyperlink{group__Eina__Value__Value__Group_ga6f088fe6c6127d808cdf214b355cbdeb}{eina\_value\_get}}(&v, &err);
      fprintf(stderr, \textcolor{stringliteral}{"Could not count the file words. Reason: %s\(\backslash\)n"}, 
      \mbox{\hyperlink{group__Eina__Error__Group_ga3402bc58a9f854391eb35fa7650edda5}{eina\_error\_msg\_get}}(err));
      \mbox{\hyperlink{group__Ecore__Main__Loop__Group_ga95cf8e97dff0716433c2c5474d606a98}{ecore\_main\_loop\_quit}}();
      \textcolor{keywordflow}{return} v;
   \}
   \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (v.type != \mbox{\hyperlink{group__Eina__Value__Group_ga17974fd9ab773a3efefd591ffde58f77}{EINA\_VALUE\_TYPE\_INT}})
   \{
     fprintf(stderr, \textcolor{stringliteral}{"Expecting type '%s' - received '%s'\(\backslash\)n"}, 
      \mbox{\hyperlink{group__Eina__Value__Group_ga17974fd9ab773a3efefd591ffde58f77}{EINA\_VALUE\_TYPE\_INT}}->\mbox{\hyperlink{struct__Eina__Value__Type_ada10b4da2ce18ea23e10dc048f470af0}{name}}, v.type->name);
     \mbox{\hyperlink{group__Ecore__Main__Loop__Group_ga95cf8e97dff0716433c2c5474d606a98}{ecore\_main\_loop\_quit}}();
     \textcolor{keywordflow}{return} v;
   \}
   \mbox{\hyperlink{group__Eina__Value__Value__Group_ga6f088fe6c6127d808cdf214b355cbdeb}{eina\_value\_get}}(&v, &count);
   printf(\textcolor{stringliteral}{"File word count %d\(\backslash\)n"}, count);
   \textcolor{keywordflow}{return} v;
\}

\textcolor{keywordtype}{void}
file\_operation(\textcolor{keywordtype}{void})
\{
   Eina\_Future *f = get\_file\_data(\textcolor{stringliteral}{"/MyFile.txt"});
   \mbox{\hyperlink{group__Eina__Future_gaeb721d890aa5eac3103a982edde76e9a}{eina\_future\_chain}}(f, \{.cb = \_file\_data\_ready, .data = NULL\},
                        \{.cb = \_word\_count\_ready, .data = NULL\});
\}
\end{DoxyCode}



\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in,out}  & {\em p} & The promise obect to create the value from. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An Eina\+\_\+\+Value. On error the value\textquotesingle{}s type will be {\ttfamily N\+U\+LL}.
\end{DoxyReturn}
\begin{DoxyNote}{Note}
If an error happens the promise will be C\+A\+N\+C\+E\+L\+ED. 
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga6b3b9b94ed2b8d324fe8053a1ff8b926}{eina\+\_\+future\+\_\+as\+\_\+value()}} 

\mbox{\hyperlink{group__Eina__Promise_ga215b6ba47e18087e2bd99b87312ff393}{eina\+\_\+promise\+\_\+reject()}} 

\mbox{\hyperlink{group__Eina__Promise_gab5d3ac1b6d4e58a1da5d9e14b77f4c97}{eina\+\_\+promise\+\_\+resolve()}} 
\end{DoxySeeAlso}


References E\+I\+N\+A\+\_\+\+V\+A\+L\+U\+E\+\_\+\+E\+M\+P\+TY, and eina\+\_\+value\+\_\+setup().

\mbox{\Hypertarget{group__Eina__Future_ga6b3b9b94ed2b8d324fe8053a1ff8b926}\label{group__Eina__Future_ga6b3b9b94ed2b8d324fe8053a1ff8b926}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+as\+\_\+value@{eina\+\_\+future\+\_\+as\+\_\+value}}
\index{eina\+\_\+future\+\_\+as\+\_\+value@{eina\+\_\+future\+\_\+as\+\_\+value}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+as\+\_\+value()}{eina\_future\_as\_value()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Value__Group_ga7985e8af6e956ae31b381bf829173cc0}{Eina\+\_\+\+Value}} eina\+\_\+future\+\_\+as\+\_\+value (\begin{DoxyParamCaption}\item[{Eina\+\_\+\+Future $\ast$}]{f }\end{DoxyParamCaption})}



Creates an Eina\+\_\+\+Value from a future. 

This function is used for the same purposes as \mbox{\hyperlink{group__Eina__Future_ga6151e485fad1e3623c365d11e319d7da}{eina\+\_\+promise\+\_\+as\+\_\+value()}}, but receives an Eina\+\_\+\+Future instead.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in,out}  & {\em f} & A future to create a Eina\+\_\+\+Value from. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An Eina\+\_\+\+Value. On error the value\textquotesingle{}s type will be {\ttfamily N\+U\+LL}. 
\end{DoxyReturn}
\begin{DoxyNote}{Note}
If an error happens the future {\ttfamily f} will be C\+A\+N\+C\+E\+L\+ED 
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga6151e485fad1e3623c365d11e319d7da}{eina\+\_\+promise\+\_\+as\+\_\+value()}} 
\end{DoxySeeAlso}


References E\+I\+N\+A\+\_\+\+V\+A\+L\+U\+E\+\_\+\+E\+M\+P\+TY.

\mbox{\Hypertarget{group__Eina__Future_gaf4fee59b5faafd33965969ac35377cee}\label{group__Eina__Future_gaf4fee59b5faafd33965969ac35377cee}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+new@{eina\+\_\+future\+\_\+new}}
\index{eina\+\_\+future\+\_\+new@{eina\+\_\+future\+\_\+new}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+new()}{eina\_future\_new()}}
{\footnotesize\ttfamily Eina\+\_\+\+Future$\ast$ eina\+\_\+future\+\_\+new (\begin{DoxyParamCaption}\item[{Eina\+\_\+\+Promise $\ast$}]{p }\end{DoxyParamCaption})}



Creates a new future. 

This function creates a new future and can be used to report that an operation has succeeded or failed using \mbox{\hyperlink{group__Eina__Promise_gab5d3ac1b6d4e58a1da5d9e14b77f4c97}{eina\+\_\+promise\+\_\+resolve()}} or \mbox{\hyperlink{group__Eina__Promise_ga215b6ba47e18087e2bd99b87312ff393}{eina\+\_\+promise\+\_\+reject()}}.

Futures can also be canceled using eina\+\_\+future\+\_\+cancel(), which will cause the whole chain to be canceled alongside with any pending promise.

\begin{DoxyNote}{Note}
A promise can only have one future attached to it, calling \mbox{\hyperlink{group__Eina__Future_gaf4fee59b5faafd33965969ac35377cee}{eina\+\_\+future\+\_\+new()}} on the same promise twice will result in an error ({\ttfamily N\+U\+LL} is returned) and the future attached to the promise will be canceled!
\end{DoxyNote}

\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in,out}  & {\em p} & A promise used to attach a future. May not be {\ttfamily N\+U\+LL}. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The future or {\ttfamily N\+U\+LL} on error. 
\end{DoxyReturn}
\begin{DoxyNote}{Note}
If an error happens this function will C\+A\+N\+C\+EL the promise. 
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
eina\+\_\+promise\+\_\+new() 

\mbox{\hyperlink{group__Eina__Promise_ga215b6ba47e18087e2bd99b87312ff393}{eina\+\_\+promise\+\_\+reject()}} 

\mbox{\hyperlink{group__Eina__Promise_gab5d3ac1b6d4e58a1da5d9e14b77f4c97}{eina\+\_\+promise\+\_\+resolve()}} 

eina\+\_\+future\+\_\+cancel() 
\end{DoxySeeAlso}


References \+\_\+\+Eina\+\_\+\+Future\+\_\+\+Desc\+::cb.



Referenced by eina\+\_\+future\+\_\+all\+\_\+array(), and eina\+\_\+future\+\_\+race\+\_\+array().

\mbox{\Hypertarget{group__Eina__Future_gad2e4b9d0ff885ccc38cd2319d05a7274}\label{group__Eina__Future_gad2e4b9d0ff885ccc38cd2319d05a7274}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+resolved@{eina\+\_\+future\+\_\+resolved}}
\index{eina\+\_\+future\+\_\+resolved@{eina\+\_\+future\+\_\+resolved}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+resolved()}{eina\_future\_resolved()}}
{\footnotesize\ttfamily Eina\+\_\+\+Future$\ast$ eina\+\_\+future\+\_\+resolved (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{struct__Eina__Future__Scheduler}{Eina\+\_\+\+Future\+\_\+\+Scheduler}} $\ast$}]{scheduler,  }\item[{\mbox{\hyperlink{group__Eina__Value__Group_ga7985e8af6e956ae31b381bf829173cc0}{Eina\+\_\+\+Value}}}]{value }\end{DoxyParamCaption})}



Creates a new future that is already resolved to a value. 

This function creates a new future with an already known value, that will be resolved and dispatched by the given {\itshape scheduler} as usual.

This is a helper that behaves the same as eina\+\_\+promise\+\_\+new() followed by \mbox{\hyperlink{group__Eina__Future_gaf4fee59b5faafd33965969ac35377cee}{eina\+\_\+future\+\_\+new()}} and then \mbox{\hyperlink{group__Eina__Promise_gab5d3ac1b6d4e58a1da5d9e14b77f4c97}{eina\+\_\+promise\+\_\+resolve()}}.

Futures can also be canceled using eina\+\_\+future\+\_\+cancel(), which will cause the whole chain to be canceled alongside with any pending promise.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in,out}  & {\em scheduler} & The scheduler to use. \\
\hline
\mbox{\tt in}  & {\em value} & The value to be delivered. Note that the value contents must survive this function scope, that is, do {\bfseries not} use stack allocated blobs, arrays, structures or types that keep references to memory you give. Values will be automatically cleaned up using {\ttfamily \mbox{\hyperlink{group__Eina__Value__Value__Group_ga940660709a2862bafac92f47bb721a68}{eina\+\_\+value\+\_\+flush()}}} once they are unused (no more future or futures returned a new value).\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The future or {\ttfamily N\+U\+LL} on error.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
eina\+\_\+promise\+\_\+new() 

\mbox{\hyperlink{group__Eina__Future_gaf4fee59b5faafd33965969ac35377cee}{eina\+\_\+future\+\_\+new()}} 

\mbox{\hyperlink{group__Eina__Promise_ga215b6ba47e18087e2bd99b87312ff393}{eina\+\_\+promise\+\_\+reject()}} 

\mbox{\hyperlink{group__Eina__Promise_gab5d3ac1b6d4e58a1da5d9e14b77f4c97}{eina\+\_\+promise\+\_\+resolve()}} 

eina\+\_\+future\+\_\+cancel() 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eina__Future_ga5b6ad41fa54f3705a987305d18dc3640}\label{group__Eina__Future_ga5b6ad41fa54f3705a987305d18dc3640}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+rejected@{eina\+\_\+future\+\_\+rejected}}
\index{eina\+\_\+future\+\_\+rejected@{eina\+\_\+future\+\_\+rejected}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+rejected()}{eina\_future\_rejected()}}
{\footnotesize\ttfamily Eina\+\_\+\+Future$\ast$ eina\+\_\+future\+\_\+rejected (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{struct__Eina__Future__Scheduler}{Eina\+\_\+\+Future\+\_\+\+Scheduler}} $\ast$}]{scheduler,  }\item[{\mbox{\hyperlink{group__Eina__Error__Group_ga95b3cbb33e987e7d92a81ea785001686}{Eina\+\_\+\+Error}}}]{err }\end{DoxyParamCaption})}



Creates a new future that is already rejected to a specified error. 

This function creates a new future with an already known error, that will be resolved and dispatched by the given {\itshape scheduler} as usual.

This is a helper that behaves the same as eina\+\_\+promise\+\_\+new() followed by \mbox{\hyperlink{group__Eina__Future_gaf4fee59b5faafd33965969ac35377cee}{eina\+\_\+future\+\_\+new()}} and then eina\+\_\+promise\+\_\+rejected().

Futures can also be canceled using eina\+\_\+future\+\_\+cancel(), which will cause the whole chain to be canceled alongside with any pending promise.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in,out}  & {\em scheduler} & The scheduler to use. \\
\hline
\mbox{\tt in}  & {\em err} & An Eina\+\_\+\+Error value\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The future or {\ttfamily N\+U\+LL} on error.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
eina\+\_\+promise\+\_\+new() 

\mbox{\hyperlink{group__Eina__Future_gaf4fee59b5faafd33965969ac35377cee}{eina\+\_\+future\+\_\+new()}} 

\mbox{\hyperlink{group__Eina__Promise_ga215b6ba47e18087e2bd99b87312ff393}{eina\+\_\+promise\+\_\+reject()}} 

\mbox{\hyperlink{group__Eina__Promise_gab5d3ac1b6d4e58a1da5d9e14b77f4c97}{eina\+\_\+promise\+\_\+resolve()}} 

eina\+\_\+future\+\_\+cancel() 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eina__Future_gae4c1896c7eb8b40933c7b0640c881f33}\label{group__Eina__Future_gae4c1896c7eb8b40933c7b0640c881f33}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+then\+\_\+from\+\_\+desc@{eina\+\_\+future\+\_\+then\+\_\+from\+\_\+desc}}
\index{eina\+\_\+future\+\_\+then\+\_\+from\+\_\+desc@{eina\+\_\+future\+\_\+then\+\_\+from\+\_\+desc}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+then\+\_\+from\+\_\+desc()}{eina\_future\_then\_from\_desc()}}
{\footnotesize\ttfamily Eina\+\_\+\+Future$\ast$ eina\+\_\+future\+\_\+then\+\_\+from\+\_\+desc (\begin{DoxyParamCaption}\item[{Eina\+\_\+\+Future $\ast$}]{prev,  }\item[{const \mbox{\hyperlink{struct__Eina__Future__Desc}{Eina\+\_\+\+Future\+\_\+\+Desc}}}]{desc }\end{DoxyParamCaption})}



Register an Eina\+\_\+\+Future\+\_\+\+Desc to be used when the future is resolve/rejected. 

With this function a callback and data is attached to the future and then once it\textquotesingle{}s resolved or rejected the callback will be informed.

If during the future creation an error happens this function will return {\ttfamily N\+U\+LL}, and the \mbox{\hyperlink{struct__Eina__Future__Desc_a539cbfa26204bdf1aae7bdcfa6f15d09}{Eina\+\_\+\+Future\+\_\+\+Desc\+::cb}} will be called reporting an error ({\ttfamily E\+I\+N\+V\+AL} or {\ttfamily E\+N\+O\+M\+EM}), so the user has a chance to free \mbox{\hyperlink{struct__Eina__Future__Desc_a3776d82a99776d2b6a96839c6191bc13}{Eina\+\_\+\+Future\+\_\+\+Desc\+::data}}.

In case a future in the chain is canceled, the whole chain will be canceled immediately and the error {\ttfamily E\+C\+A\+N\+C\+E\+L\+ED} will be reported.

Here\textquotesingle{}s a simple usage of this function.


\begin{DoxyCode}
\textcolor{keyword}{static} \mbox{\hyperlink{struct__Eina__Value}{Eina\_Value}}
\_file\_ready(\textcolor{keyword}{const} *data, \textcolor{keyword}{const} \mbox{\hyperlink{struct__Eina__Value}{Eina\_Value}} v, \textcolor{keyword}{const} Eina\_Future *dead 
      \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})
\{
   Ctx *ctx = data;
   \textcolor{comment}{// It was not possible to fetch the file size.}
   \textcolor{keywordflow}{if} (v.type == \mbox{\hyperlink{group__Eina__Value__Group_ga28f6fb160baf3068e7c67ffba0a29c20}{EINA\_VALUE\_TYPE\_ERROR}})
   \{
      \mbox{\hyperlink{group__Eina__Error__Group_ga95b3cbb33e987e7d92a81ea785001686}{Eina\_Error}} err;
      \mbox{\hyperlink{group__Eina__Value__Value__Group_ga6f088fe6c6127d808cdf214b355cbdeb}{eina\_value\_get}}(&v, &err);
      fprintf(stderr, \textcolor{stringliteral}{"Could not read the file size. Reason: %s\(\backslash\)n"}, 
      \mbox{\hyperlink{group__Eina__Error__Group_ga3402bc58a9f854391eb35fa7650edda5}{eina\_error\_msg\_get}}(err));
      \mbox{\hyperlink{group__Ecore__Main__Loop__Group_ga95cf8e97dff0716433c2c5474d606a98}{ecore\_main\_loop\_quit}}();
      \textcolor{keywordflow}{return} v;
   \}
   \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (v.type != \mbox{\hyperlink{group__Eina__Value__Group_ga17974fd9ab773a3efefd591ffde58f77}{EINA\_VALUE\_TYPE\_INT}})
   \{
     fprintf(stderr, \textcolor{stringliteral}{"Expecting type '%s' - received '%s'\(\backslash\)n"}, 
      \mbox{\hyperlink{group__Eina__Value__Group_ga17974fd9ab773a3efefd591ffde58f77}{EINA\_VALUE\_TYPE\_INT}}->\mbox{\hyperlink{struct__Eina__Value__Type_ada10b4da2ce18ea23e10dc048f470af0}{name}}, v.type->name);
     \mbox{\hyperlink{group__Ecore__Main__Loop__Group_ga95cf8e97dff0716433c2c5474d606a98}{ecore\_main\_loop\_quit}}();
     \textcolor{keywordflow}{return} v;
   \}
   \mbox{\hyperlink{group__Eina__Value__Value__Group_ga6f088fe6c6127d808cdf214b355cbdeb}{eina\_value\_get}}(&v, &ctx->size);
   printf(\textcolor{stringliteral}{"File size is %d bytes\(\backslash\)n"}, ctx->size);
   \textcolor{keywordflow}{return} v;
\}

\textcolor{keywordtype}{void}
file\_operation(\textcolor{keywordtype}{void})
\{
   Eina\_Future *f = get\_file\_size\_async(\textcolor{stringliteral}{"/MyFile.txt"});
   \mbox{\hyperlink{group__Eina__Future_gae4c1896c7eb8b40933c7b0640c881f33}{eina\_future\_then\_from\_desc}}(f, (\textcolor{keyword}{const} 
      \mbox{\hyperlink{struct__Eina__Future__Desc}{Eina\_Future\_Desc}})\{.cb = \_size\_ready, .data = NULL\});
   \textcolor{comment}{// There's a helper macro called eina\_future\_then() which simplifies the usage.}
   \textcolor{comment}{// The code below has the same effect.}
   \textcolor{comment}{// eina\_future\_then(f, \_size\_ready, NULL);}
\}
\end{DoxyCode}


Although the code presented at {\ttfamily \+\_\+size\+\_\+ready()} is very simple, most of it is just used to check the Eina\+\_\+\+Value type. In order to avoid this type of code the function \mbox{\hyperlink{group__Eina__Future_gaacfe9df476304cd36069907863bf12cc}{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+from\+\_\+desc()}} was created. Please, check its documentation for more information.

This function can also be used to create a future chain, making it possible to execute the future result in a cascade order. When using a future chain the Eina\+\_\+\+Value returned by a \mbox{\hyperlink{struct__Eina__Future__Desc_a539cbfa26204bdf1aae7bdcfa6f15d09}{Eina\+\_\+\+Future\+\_\+\+Desc\+::cb}} will be delivered to the next \mbox{\hyperlink{struct__Eina__Future__Desc_a539cbfa26204bdf1aae7bdcfa6f15d09}{Eina\+\_\+\+Future\+\_\+\+Desc\+::cb}} in the chain.

Here\textquotesingle{}s an example\+:

static Eina\+\_\+\+Value \+\_\+future\+\_\+cb1(const $\ast$data E\+I\+N\+A\+\_\+\+U\+N\+U\+S\+E\+D, const Eina\+\_\+\+Value v) \{ Eina\+\_\+\+Value new\+\_\+v; int i;

// There\textquotesingle{}s no need to check the Eina\+\_\+\+Value type since we\textquotesingle{}re using \mbox{\hyperlink{group__Eina__Future_ga57f56d13f3f3bb13651ea3b81b59e8f1}{eina\+\_\+future\+\_\+cb\+\_\+easy()}} eina\+\_\+value\+\_\+get(\&v, \&i); printf(\char`\"{}\+File size as int\+: \%d\textbackslash{}n\char`\"{}, i); eina\+\_\+value\+\_\+setup(\&new\+\_\+v, E\+I\+N\+A\+\_\+\+V\+A\+L\+U\+E\+\_\+\+T\+Y\+P\+E\+\_\+\+S\+T\+R\+I\+N\+G); // Convert the file size to string eina\+\_\+value\+\_\+convert(\&v, \&new\+\_\+v); return new\+\_\+v; \}

static Eina\+\_\+\+Value \+\_\+future\+\_\+cb2(const $\ast$data E\+I\+N\+A\+\_\+\+U\+N\+U\+S\+E\+D, const Eina\+\_\+\+Value v) \{ Eina\+\_\+\+Value new\+\_\+v; const char $\ast$file\+\_\+size\+\_\+str;

// There\textquotesingle{}s no need to check the Eina\+\_\+\+Value type since we\textquotesingle{}re using \mbox{\hyperlink{group__Eina__Future_ga57f56d13f3f3bb13651ea3b81b59e8f1}{eina\+\_\+future\+\_\+cb\+\_\+easy()}} eina\+\_\+value\+\_\+get(\&v, \&file\+\_\+size\+\_\+str); printf(\char`\"{}\+File size as string\+: \%s\textbackslash{}n\char`\"{}, file\+\_\+size\+\_\+str); eina\+\_\+value\+\_\+setup(\&new\+\_\+v, E\+I\+N\+A\+\_\+\+V\+A\+L\+U\+E\+\_\+\+T\+Y\+P\+E\+\_\+\+D\+O\+U\+B\+L\+E); eina\+\_\+value\+\_\+convert(\&v, \&new\+\_\+v); return new\+\_\+v; \}

static Eina\+\_\+\+Value \+\_\+future\+\_\+cb3(const $\ast$data E\+I\+N\+A\+\_\+\+U\+N\+U\+S\+E\+D, const Eina\+\_\+\+Value v) \{ double d;

// There\textquotesingle{}s no need to check the Eina\+\_\+\+Value type since we\textquotesingle{}re using \mbox{\hyperlink{group__Eina__Future_ga57f56d13f3f3bb13651ea3b81b59e8f1}{eina\+\_\+future\+\_\+cb\+\_\+easy()}} eina\+\_\+value\+\_\+get(\&v, \&d); printf(\char`\"{}\+File size as double\+: \%g\textbackslash{}n\char`\"{}, d); return v; \}

static Eina\+\_\+\+Value \+\_\+future\+\_\+err(void $\ast$data E\+I\+N\+A\+\_\+\+U\+N\+U\+S\+E\+D, Eina\+\_\+\+Error err) \{ // This function is called if future result type does not match or another error occurred Eina\+\_\+\+Value new\+\_\+v; eina\+\_\+value\+\_\+setup(\&new\+\_\+v, E\+I\+N\+A\+\_\+\+V\+A\+L\+U\+E\+\_\+\+T\+Y\+P\+E\+\_\+\+E\+R\+R\+O\+R); eina\+\_\+value\+\_\+set(\&new\+\_\+v, err); fprintf(stderr, \char`\"{}\+Error during future process. Reason\+: \%s\textbackslash{}n\char`\"{}, eina\+\_\+error\+\_\+msg\+\_\+get(err)); // Pass the error to the next future in the chain.. return new\+\_\+v; \}


\begin{DoxyCode}
\textcolor{keywordtype}{void} chain(\textcolor{keywordtype}{void})
\{
  Eina\_Future *f = get\_file\_size\_async(\textcolor{stringliteral}{"/MyFile.txt"});
  f = \mbox{\hyperlink{group__Eina__Future_ga1125fb075daa2ac3548ee4a55d69190c}{eina\_future\_then\_easy}}(f, .success = \_future\_cb1, .success\_type = 
      \mbox{\hyperlink{group__Eina__Value__Group_ga17974fd9ab773a3efefd591ffde58f77}{EINA\_VALUE\_TYPE\_INT}});
  \textcolor{comment}{// \_future\_cb2 will be executed after \_future\_cb1()}
  f = \mbox{\hyperlink{group__Eina__Future_ga1125fb075daa2ac3548ee4a55d69190c}{eina\_future\_then\_easy}}(f, .success = \_future\_cb2, .success\_type = 
      \mbox{\hyperlink{group__Eina__Value__Group_ga916f76c8d5ffd4c3ee3c322a54efd0b7}{EINA\_VALUE\_TYPE\_STRING}});
  \textcolor{comment}{// \_future\_cb3 will be executed after \_future\_cb2()}
  f = \mbox{\hyperlink{group__Eina__Future_ga1125fb075daa2ac3548ee4a55d69190c}{eina\_future\_then\_easy}}(f, .success = \_future\_cb3, .success\_type = 
      \mbox{\hyperlink{group__Eina__Value__Group_ga959961fb03cd94a84ab469245c543732}{EINA\_VALUE\_TYPE\_DOUBLE}});
  \textcolor{comment}{// If an error happens \_future\_err will be called}
  \mbox{\hyperlink{group__Eina__Future_ga1125fb075daa2ac3548ee4a55d69190c}{eina\_future\_then\_easy}}(f, .error = \_future\_err);
\}
\end{DoxyCode}


Although it\textquotesingle{}s possible to create a future chain using \mbox{\hyperlink{group__Eina__Future_ga9f4948790f1f84de93ba8195520d4a92}{eina\+\_\+future\+\_\+then()}}/eina\+\_\+future\+\_\+then\+\_\+from\+\_\+desc() there\textquotesingle{}s a function that makes this task much easier, please check \mbox{\hyperlink{group__Eina__Future_ga5517a17a841d31ad46acf9285a709bbc}{eina\+\_\+future\+\_\+chain\+\_\+array()}} for more information. \begin{DoxyNote}{Note}
This example does manual conversion and print, however we offer \mbox{\hyperlink{group__Eina__Future_gaf122d123c6bef58a2f01dbdefab2b19b}{eina\+\_\+future\+\_\+cb\+\_\+convert\+\_\+to()}} and \mbox{\hyperlink{group__Eina__Future_gac26cdc858d6252e812b731907de744e9}{eina\+\_\+future\+\_\+cb\+\_\+console\+\_\+from\+\_\+desc()}} and to make those common case easier.
\end{DoxyNote}

\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in,out}  & {\em prev} & A future to link against \\
\hline
\mbox{\tt in}  & {\em desc} & A description struct containing the callback and data. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A new future or {\ttfamily N\+U\+LL} on error. 
\end{DoxyReturn}
\begin{DoxyNote}{Note}
If an error happens the whole future chain will C\+A\+N\+C\+E\+L\+ED and desc.\+cb will be called in order to free desc.\+data. 
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_gaf4fee59b5faafd33965969ac35377cee}{eina\+\_\+future\+\_\+new()}} 

\mbox{\hyperlink{group__Eina__Future_ga9f4948790f1f84de93ba8195520d4a92}{eina\+\_\+future\+\_\+then()}} 

\#\+Eina\+\_\+\+Future\+\_\+\+Desc 

\mbox{\hyperlink{group__Eina__Future_ga5517a17a841d31ad46acf9285a709bbc}{eina\+\_\+future\+\_\+chain\+\_\+array()}} 

\mbox{\hyperlink{group__Eina__Future_gaeb721d890aa5eac3103a982edde76e9a}{eina\+\_\+future\+\_\+chain()}} 

\mbox{\hyperlink{group__Eina__Future_gac26cdc858d6252e812b731907de744e9}{eina\+\_\+future\+\_\+cb\+\_\+console\+\_\+from\+\_\+desc()}} 

\mbox{\hyperlink{group__Eina__Future_gaacfe9df476304cd36069907863bf12cc}{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+from\+\_\+desc()}} 

\mbox{\hyperlink{group__Eina__Future_ga57f56d13f3f3bb13651ea3b81b59e8f1}{eina\+\_\+future\+\_\+cb\+\_\+easy()}} 

\mbox{\hyperlink{group__Eina__Future_gaf122d123c6bef58a2f01dbdefab2b19b}{eina\+\_\+future\+\_\+cb\+\_\+convert\+\_\+to()}} 

eina\+\_\+future\+\_\+cancel() 

\mbox{\hyperlink{group__Eina__Future_ga1125fb075daa2ac3548ee4a55d69190c}{eina\+\_\+future\+\_\+then\+\_\+easy()}} 

\mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc()}} 
\end{DoxySeeAlso}


Referenced by efl\+\_\+future\+\_\+chain\+\_\+array().

\mbox{\Hypertarget{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}\label{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc@{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc}}
\index{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc@{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc()}{eina\_future\_cb\_log\_from\_desc()}}
{\footnotesize\ttfamily \mbox{\hyperlink{struct__Eina__Future__Desc}{Eina\+\_\+\+Future\+\_\+\+Desc}} eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc}}}]{desc }\end{DoxyParamCaption})}



Creates an Eina\+\_\+\+Future\+\_\+\+Desc that will log the previous future resolved value. 

This function can be used to quickly log the value that an \mbox{\hyperlink{struct__Eina__Future__Desc_a539cbfa26204bdf1aae7bdcfa6f15d09}{Eina\+\_\+\+Future\+\_\+\+Desc\+::cb}} is returning. The returned value will be passed to the next future in the chain without modifications.

There are some helper macros like \mbox{\hyperlink{group__Eina__Future_ga14896937e5ae72ac066518d8fe4e483d}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+dbg()}} which will automatically fill the following fields\+:

\begin{DoxyItemize}
\item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_a2b5cdedfc4bcd383d341fc9bb816fb46}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::file}}\+: The {\bfseries F\+I\+LE} function will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_ac40ef8a65fbdec71615d6327b588f135}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::func}}\+: The {\bfseries F\+U\+N\+C\+T\+I\+ON} macro will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_a160bbd8d35b40b00d0ef41d9d283101c}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::level}}\+: E\+I\+N\+A\+\_\+\+L\+O\+G\+\_\+\+L\+E\+V\+E\+L\+\_\+\+D\+BG will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_ae20c3c17ec8f6c62b5041d26b6b17b8c}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::domain}}\+: E\+I\+N\+A\+\_\+\+L\+O\+G\+\_\+\+D\+O\+M\+A\+I\+N\+\_\+\+D\+E\+F\+A\+U\+LT will be used. \item \mbox{\hyperlink{struct__Eina__Future__Cb__Log__Desc_a2cab78b0d653b250d7b68f8ffb848c5a}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc\+::line}}\+: The {\bfseries L\+I\+NE} macro will be used.\end{DoxyItemize}

\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em desc} & The description data to be used. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An \#\+Eina\+\_\+\+Future\+\_\+\+Desc
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\#\+Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Log\+\_\+\+Desc 

efl\+\_\+future\+\_\+then() 

\mbox{\hyperlink{group__Eo_gae7a670d93ca8018f237dbfb91c67f100}{efl\+\_\+future\+\_\+chain()}} 

\mbox{\hyperlink{group__Eina__Future_ga14896937e5ae72ac066518d8fe4e483d}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+dbg()}} 

\mbox{\hyperlink{group__Eina__Future_ga91cba9ac4306b0dee948dd3a0b10a893}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+crit()}} 

\mbox{\hyperlink{group__Eina__Future_gade1a19f673ac90442409aba274ff0884}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+err()}} 

\mbox{\hyperlink{group__Eina__Future_gaf3f9d1b140fa23528a74f09e78fadb09}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+info()}} 

\mbox{\hyperlink{group__Eina__Future_ga8ed87813808c62045569f4e09868dbe8}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+warn()}} 

\mbox{\hyperlink{group__Eina__Future_gac26cdc858d6252e812b731907de744e9}{eina\+\_\+future\+\_\+cb\+\_\+console\+\_\+from\+\_\+desc()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eina__Future_ga5517a17a841d31ad46acf9285a709bbc}\label{group__Eina__Future_ga5517a17a841d31ad46acf9285a709bbc}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+chain\+\_\+array@{eina\+\_\+future\+\_\+chain\+\_\+array}}
\index{eina\+\_\+future\+\_\+chain\+\_\+array@{eina\+\_\+future\+\_\+chain\+\_\+array}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+chain\+\_\+array()}{eina\_future\_chain\_array()}}
{\footnotesize\ttfamily Eina\+\_\+\+Future$\ast$ eina\+\_\+future\+\_\+chain\+\_\+array (\begin{DoxyParamCaption}\item[{Eina\+\_\+\+Future $\ast$}]{prev,  }\item[{const \mbox{\hyperlink{struct__Eina__Future__Desc}{Eina\+\_\+\+Future\+\_\+\+Desc}}}]{descs\mbox{[}$\,$\mbox{]} }\end{DoxyParamCaption})}



Creates a future chain. 

This behaves exactly like \mbox{\hyperlink{group__Eina__Future_gae4c1896c7eb8b40933c7b0640c881f33}{eina\+\_\+future\+\_\+then\+\_\+from\+\_\+desc()}}, but makes it easier to create future chains.

If during the future chain creation an error happens this function will return {\ttfamily N\+U\+LL}, and the \mbox{\hyperlink{struct__Eina__Future__Desc_a539cbfa26204bdf1aae7bdcfa6f15d09}{Eina\+\_\+\+Future\+\_\+\+Desc\+::cb}} from the {\ttfamily descs} array will be called reporting an error ({\ttfamily E\+I\+N\+V\+AL} or {\ttfamily E\+N\+O\+M\+EM}), so the user has a chance to free \mbox{\hyperlink{struct__Eina__Future__Desc_a3776d82a99776d2b6a96839c6191bc13}{Eina\+\_\+\+Future\+\_\+\+Desc\+::data}}.

Just like \mbox{\hyperlink{group__Eina__Future_gae4c1896c7eb8b40933c7b0640c881f33}{eina\+\_\+future\+\_\+then\+\_\+from\+\_\+desc()}}, the value returned by a \mbox{\hyperlink{struct__Eina__Future__Desc_a539cbfa26204bdf1aae7bdcfa6f15d09}{Eina\+\_\+\+Future\+\_\+\+Desc\+::cb}} callback will be delivered to the next \mbox{\hyperlink{struct__Eina__Future__Desc_a539cbfa26204bdf1aae7bdcfa6f15d09}{Eina\+\_\+\+Future\+\_\+\+Desc\+::cb}} in the chain.

In case a future in the chain is canceled, the whole chain will be canceled immediately and the error {\ttfamily E\+C\+A\+N\+C\+E\+L\+ED} will be reported.

Here\textquotesingle{}s an example\+:


\begin{DoxyCode}
\textcolor{comment}{// callbacks code....}

Eina\_Future* chain(\textcolor{keywordtype}{void})
\{
  Eina\_Future *f = get\_file\_size\_async(\textcolor{stringliteral}{"/MyFile.txt"});
  \textcolor{keywordflow}{return} \mbox{\hyperlink{group__Eina__Future_gaeb721d890aa5eac3103a982edde76e9a}{eina\_future\_chain}}(f, \mbox{\hyperlink{group__Eina__Future_ga57f56d13f3f3bb13651ea3b81b59e8f1}{eina\_future\_cb\_easy}}(\_future\_cb1, 
      \_future\_err, NULL, \mbox{\hyperlink{group__Eina__Value__Group_ga17974fd9ab773a3efefd591ffde58f77}{EINA\_VALUE\_TYPE\_INT}}, NULL),
                              \mbox{\hyperlink{group__Eina__Future_ga57f56d13f3f3bb13651ea3b81b59e8f1}{eina\_future\_cb\_easy}}(\_future\_cb2, \_future\_err, NULL, 
      \mbox{\hyperlink{group__Eina__Value__Group_ga916f76c8d5ffd4c3ee3c322a54efd0b7}{EINA\_VALUE\_TYPE\_STRING}}, NULL),
                              \mbox{\hyperlink{group__Eina__Future_ga57f56d13f3f3bb13651ea3b81b59e8f1}{eina\_future\_cb\_easy}}(\_future\_cb3, \_future\_err, NULL, 
      \mbox{\hyperlink{group__Eina__Value__Group_ga959961fb03cd94a84ab469245c543732}{EINA\_VALUE\_TYPE\_DOUBLE}}, NULL),
                              \{.cb = \_future\_cb4, .data = NULL \});
\}
\end{DoxyCode}



\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in,out}  & {\em prev} & The previous future \\
\hline
\mbox{\tt in}  & {\em descs} & An array of descriptions. The last element of the array must have the \mbox{\hyperlink{struct__Eina__Future__Desc_a539cbfa26204bdf1aae7bdcfa6f15d09}{Eina\+\_\+\+Future\+\_\+\+Desc\+::cb}} set to {\ttfamily N\+U\+LL} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A future or {\ttfamily N\+U\+LL} on error. 
\end{DoxyReturn}
\begin{DoxyNote}{Note}
If an error happens the whole future chain will C\+A\+N\+C\+E\+L\+ED and desc.\+cb will be called in order to free desc.\+data. 
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_gaf4fee59b5faafd33965969ac35377cee}{eina\+\_\+future\+\_\+new()}} 

\mbox{\hyperlink{group__Eina__Future_ga9f4948790f1f84de93ba8195520d4a92}{eina\+\_\+future\+\_\+then()}} 

\#\+Eina\+\_\+\+Future\+\_\+\+Desc 

\mbox{\hyperlink{group__Eina__Future_gaeb721d890aa5eac3103a982edde76e9a}{eina\+\_\+future\+\_\+chain()}} 

\mbox{\hyperlink{group__Eina__Future_gae9e287741f9aa10b83dc33854e5290b6}{eina\+\_\+future\+\_\+cb\+\_\+ignore\+\_\+error()}} 

\mbox{\hyperlink{group__Eina__Future_gac26cdc858d6252e812b731907de744e9}{eina\+\_\+future\+\_\+cb\+\_\+console\+\_\+from\+\_\+desc()}} 

\mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc()}} 

\mbox{\hyperlink{group__Eina__Future_gaacfe9df476304cd36069907863bf12cc}{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+from\+\_\+desc()}} 

\mbox{\hyperlink{group__Eina__Future_ga57f56d13f3f3bb13651ea3b81b59e8f1}{eina\+\_\+future\+\_\+cb\+\_\+easy()}} 

\mbox{\hyperlink{group__Eina__Future_gae4c1896c7eb8b40933c7b0640c881f33}{eina\+\_\+future\+\_\+then\+\_\+from\+\_\+desc()}} 

\mbox{\hyperlink{group__Eina__Future_ga1125fb075daa2ac3548ee4a55d69190c}{eina\+\_\+future\+\_\+then\+\_\+easy()}} 

\mbox{\hyperlink{group__Eina__Future_gaf122d123c6bef58a2f01dbdefab2b19b}{eina\+\_\+future\+\_\+cb\+\_\+convert\+\_\+to()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eina__Future_ga6b072f800c651b9cdee2aebb788bf7b5}\label{group__Eina__Future_ga6b072f800c651b9cdee2aebb788bf7b5}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+chain\+\_\+easy\+\_\+array@{eina\+\_\+future\+\_\+chain\+\_\+easy\+\_\+array}}
\index{eina\+\_\+future\+\_\+chain\+\_\+easy\+\_\+array@{eina\+\_\+future\+\_\+chain\+\_\+easy\+\_\+array}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+chain\+\_\+easy\+\_\+array()}{eina\_future\_chain\_easy\_array()}}
{\footnotesize\ttfamily Eina\+\_\+\+Future$\ast$ eina\+\_\+future\+\_\+chain\+\_\+easy\+\_\+array (\begin{DoxyParamCaption}\item[{Eina\+\_\+\+Future $\ast$}]{prev,  }\item[{const \mbox{\hyperlink{struct__Eina__Future__Cb__Easy__Desc}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc}}}]{descs\mbox{[}$\,$\mbox{]} }\end{DoxyParamCaption})}



Wrapper around \mbox{\hyperlink{group__Eina__Future_ga5517a17a841d31ad46acf9285a709bbc}{eina\+\_\+future\+\_\+chain\+\_\+array()}} and \mbox{\hyperlink{group__Eina__Future_gaacfe9df476304cd36069907863bf12cc}{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+from\+\_\+desc()}} 

This functions makes it easier to use \mbox{\hyperlink{group__Eina__Future_ga5517a17a841d31ad46acf9285a709bbc}{eina\+\_\+future\+\_\+chain\+\_\+array()}} with \mbox{\hyperlink{group__Eina__Future_gaacfe9df476304cd36069907863bf12cc}{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+from\+\_\+desc()}}, check the macro \mbox{\hyperlink{group__Eina__Future_ga51f933135f14e6e0183af7366aa351d3}{eina\+\_\+future\+\_\+chain\+\_\+easy()}} for a syntax sugar.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in,out}  & {\em prev} & The previous future \\
\hline
\mbox{\tt in}  & {\em descs} & An array of descriptions. The last element of the array must have the \mbox{\hyperlink{struct__Eina__Future__Desc_a539cbfa26204bdf1aae7bdcfa6f15d09}{Eina\+\_\+\+Future\+\_\+\+Desc\+::cb}} set to {\ttfamily N\+U\+LL} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A future or {\ttfamily N\+U\+LL} on error. 
\end{DoxyReturn}
\begin{DoxyNote}{Note}
If an error happens the whole future chain will C\+A\+N\+C\+E\+L\+ED and desc.\+cb will be called in order to free desc.\+data. 
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga51f933135f14e6e0183af7366aa351d3}{eina\+\_\+future\+\_\+chain\+\_\+easy()}} 

\mbox{\hyperlink{group__Eina__Future_gaeb721d890aa5eac3103a982edde76e9a}{eina\+\_\+future\+\_\+chain()}} 

\mbox{\hyperlink{group__Eina__Future_ga57f56d13f3f3bb13651ea3b81b59e8f1}{eina\+\_\+future\+\_\+cb\+\_\+easy()}} 

\mbox{\hyperlink{group__Eina__Future_ga5517a17a841d31ad46acf9285a709bbc}{eina\+\_\+future\+\_\+chain\+\_\+array()}} 

\mbox{\hyperlink{group__Eina__Future_gaacfe9df476304cd36069907863bf12cc}{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+from\+\_\+desc()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eina__Future_gac26cdc858d6252e812b731907de744e9}\label{group__Eina__Future_gac26cdc858d6252e812b731907de744e9}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+cb\+\_\+console\+\_\+from\+\_\+desc@{eina\+\_\+future\+\_\+cb\+\_\+console\+\_\+from\+\_\+desc}}
\index{eina\+\_\+future\+\_\+cb\+\_\+console\+\_\+from\+\_\+desc@{eina\+\_\+future\+\_\+cb\+\_\+console\+\_\+from\+\_\+desc}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+cb\+\_\+console\+\_\+from\+\_\+desc()}{eina\_future\_cb\_console\_from\_desc()}}
{\footnotesize\ttfamily \mbox{\hyperlink{struct__Eina__Future__Desc}{Eina\+\_\+\+Future\+\_\+\+Desc}} eina\+\_\+future\+\_\+cb\+\_\+console\+\_\+from\+\_\+desc (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{struct__Eina__Future__Cb__Console__Desc}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Console\+\_\+\+Desc}}}]{desc }\end{DoxyParamCaption})}



Creates an Eina\+\_\+\+Future\+\_\+\+Desc that will print the previous future resolved value. 

This function can be used to quickly inspect the value that an \mbox{\hyperlink{struct__Eina__Future__Desc_a539cbfa26204bdf1aae7bdcfa6f15d09}{Eina\+\_\+\+Future\+\_\+\+Desc\+::cb}} is returning. The returned value will be passed to the next future in the chain without modifications.

There\textquotesingle{}s also a helper macro called \mbox{\hyperlink{group__Eina__Future_ga32414cc629c2b989984394daef6f560b}{eina\+\_\+future\+\_\+cb\+\_\+console()}} which makes this function easier to use.

Example\+:


\begin{DoxyCode}
\mbox{\hyperlink{group__Eina__Future_gaeb721d890aa5eac3103a982edde76e9a}{eina\_future\_chain}}(a\_future, \{.cb = cb1, .data = NULL\},
                            \textcolor{comment}{//Inspect the cb1 value and pass to cb2 without modifications}
                            \mbox{\hyperlink{group__Eina__Future_ga32414cc629c2b989984394daef6f560b}{eina\_future\_cb\_console}}(\textcolor{stringliteral}{"cb1 value:"}),
                            \{.cb = cb2, .data = NULL\},
                            \textcolor{comment}{//Inspect the cb2 value}
                            \mbox{\hyperlink{group__Eina__Future_ga32414cc629c2b989984394daef6f560b}{eina\_future\_cb\_console}}(\textcolor{stringliteral}{"cb2 value:"}, \textcolor{stringliteral}{" cb2 value suffix\(\backslash\)n
      "}))
\end{DoxyCode}



\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em desc} & Description object with contextual information. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An \#\+Eina\+\_\+\+Future\+\_\+\+Desc
\end{DoxyReturn}
The description object, {\ttfamily desc}, can (optionally) include a prefix, suffix, filename and function name. If these are {\ttfamily N\+U\+LL}, empty strings (\char`\"{}\char`\"{}) are used instead. If {\ttfamily desc-\/$>$suffix} is provided, the \textquotesingle{}~\newline
\textquotesingle{} should be provided to ensure the printed string ends with a line feed.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga9f4948790f1f84de93ba8195520d4a92}{eina\+\_\+future\+\_\+then()}} 

\#\+Eina\+\_\+\+Future\+\_\+\+Desc 

\mbox{\hyperlink{group__Eina__Future_gaeb721d890aa5eac3103a982edde76e9a}{eina\+\_\+future\+\_\+chain()}} 

\mbox{\hyperlink{group__Eina__Future_gaacfe9df476304cd36069907863bf12cc}{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+from\+\_\+desc()}} 

\mbox{\hyperlink{group__Eina__Future_ga57f56d13f3f3bb13651ea3b81b59e8f1}{eina\+\_\+future\+\_\+cb\+\_\+easy()}} 

\mbox{\hyperlink{group__Eina__Future_gae4c1896c7eb8b40933c7b0640c881f33}{eina\+\_\+future\+\_\+then\+\_\+from\+\_\+desc()}} 

\mbox{\hyperlink{group__Eina__Future_ga1125fb075daa2ac3548ee4a55d69190c}{eina\+\_\+future\+\_\+then\+\_\+easy()}} 

\mbox{\hyperlink{group__Eina__Future_ga32414cc629c2b989984394daef6f560b}{eina\+\_\+future\+\_\+cb\+\_\+console()}} 

\mbox{\hyperlink{group__Eina__Future_gae9e287741f9aa10b83dc33854e5290b6}{eina\+\_\+future\+\_\+cb\+\_\+ignore\+\_\+error()}} 

\mbox{\hyperlink{group__Eina__Future_ga92d96ceed9cc6af49bc35c31704c31a1}{eina\+\_\+future\+\_\+cb\+\_\+log\+\_\+from\+\_\+desc()}} 
\end{DoxySeeAlso}


References \+\_\+\+Eina\+\_\+\+Future\+\_\+\+Desc\+::cb, \+\_\+\+Eina\+\_\+\+Future\+\_\+\+Desc\+::data, \+\_\+\+Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Console\+\_\+\+Desc\+::prefix, and \+\_\+\+Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Console\+\_\+\+Desc\+::suffix.

\mbox{\Hypertarget{group__Eina__Future_gae9e287741f9aa10b83dc33854e5290b6}\label{group__Eina__Future_gae9e287741f9aa10b83dc33854e5290b6}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+cb\+\_\+ignore\+\_\+error@{eina\+\_\+future\+\_\+cb\+\_\+ignore\+\_\+error}}
\index{eina\+\_\+future\+\_\+cb\+\_\+ignore\+\_\+error@{eina\+\_\+future\+\_\+cb\+\_\+ignore\+\_\+error}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+cb\+\_\+ignore\+\_\+error()}{eina\_future\_cb\_ignore\_error()}}
{\footnotesize\ttfamily \mbox{\hyperlink{struct__Eina__Future__Desc}{Eina\+\_\+\+Future\+\_\+\+Desc}} eina\+\_\+future\+\_\+cb\+\_\+ignore\+\_\+error (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Error__Group_ga95b3cbb33e987e7d92a81ea785001686}{Eina\+\_\+\+Error}}}]{err }\end{DoxyParamCaption})}



Returns a \#\+Eina\+\_\+\+Future\+\_\+\+Desc that ignores an error. 

This function may be used if one wants to ignore an error. If the specified error happens an E\+I\+N\+A\+\_\+\+V\+A\+L\+U\+E\+\_\+\+E\+M\+P\+TY will be delivered to the next future in the chain.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em err} & The error to be ignored. \\
\hline
 & {\em A} & future descriptor to be used with \mbox{\hyperlink{group__Eina__Future_ga9f4948790f1f84de93ba8195520d4a92}{eina\+\_\+future\+\_\+then()}} or \mbox{\hyperlink{group__Eina__Future_gaeb721d890aa5eac3103a982edde76e9a}{eina\+\_\+future\+\_\+chain()}} \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Eina__Future_gaf122d123c6bef58a2f01dbdefab2b19b}\label{group__Eina__Future_gaf122d123c6bef58a2f01dbdefab2b19b}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+cb\+\_\+convert\+\_\+to@{eina\+\_\+future\+\_\+cb\+\_\+convert\+\_\+to}}
\index{eina\+\_\+future\+\_\+cb\+\_\+convert\+\_\+to@{eina\+\_\+future\+\_\+cb\+\_\+convert\+\_\+to}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+cb\+\_\+convert\+\_\+to()}{eina\_future\_cb\_convert\_to()}}
{\footnotesize\ttfamily \mbox{\hyperlink{struct__Eina__Future__Desc}{Eina\+\_\+\+Future\+\_\+\+Desc}} eina\+\_\+future\+\_\+cb\+\_\+convert\+\_\+to (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__Value__Group_gaab67ab8bcd0624280c5276044b07e0d2}{Eina\+\_\+\+Value\+\_\+\+Type}} $\ast$}]{type }\end{DoxyParamCaption})}



Creates an \#\+Eina\+\_\+\+Future\+\_\+\+Desc which will convert the the received eina value to a given type. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em type} & The Eina\+\_\+\+Value\+\_\+\+Type to convert to. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An \#\+Eina\+\_\+\+Future\+\_\+\+Desc 
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga9f4948790f1f84de93ba8195520d4a92}{eina\+\_\+future\+\_\+then()}} 

\#\+Eina\+\_\+\+Future\+\_\+\+Desc 

\mbox{\hyperlink{group__Eina__Future_gaeb721d890aa5eac3103a982edde76e9a}{eina\+\_\+future\+\_\+chain()}} 

\mbox{\hyperlink{group__Eina__Future_gaacfe9df476304cd36069907863bf12cc}{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+from\+\_\+desc()}} 

\mbox{\hyperlink{group__Eina__Future_ga57f56d13f3f3bb13651ea3b81b59e8f1}{eina\+\_\+future\+\_\+cb\+\_\+easy()}} 

\mbox{\hyperlink{group__Eina__Future_gae4c1896c7eb8b40933c7b0640c881f33}{eina\+\_\+future\+\_\+then\+\_\+from\+\_\+desc()}} 

\mbox{\hyperlink{group__Eina__Future_ga1125fb075daa2ac3548ee4a55d69190c}{eina\+\_\+future\+\_\+then\+\_\+easy()}} 
\end{DoxySeeAlso}


References \+\_\+\+Eina\+\_\+\+Future\+\_\+\+Desc\+::cb.

\mbox{\Hypertarget{group__Eina__Future_gaacfe9df476304cd36069907863bf12cc}\label{group__Eina__Future_gaacfe9df476304cd36069907863bf12cc}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+from\+\_\+desc@{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+from\+\_\+desc}}
\index{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+from\+\_\+desc@{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+from\+\_\+desc}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+from\+\_\+desc()}{eina\_future\_cb\_easy\_from\_desc()}}
{\footnotesize\ttfamily \mbox{\hyperlink{struct__Eina__Future__Desc}{Eina\+\_\+\+Future\+\_\+\+Desc}} eina\+\_\+future\+\_\+cb\+\_\+easy\+\_\+from\+\_\+desc (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{struct__Eina__Future__Cb__Easy__Desc}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc}}}]{desc }\end{DoxyParamCaption})}



Creates an \#\+Eina\+\_\+\+Future\+\_\+\+Desc based on a \#\+Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc. 

This function aims to be used in conjunction with \mbox{\hyperlink{group__Eina__Future_gaeb721d890aa5eac3103a982edde76e9a}{eina\+\_\+future\+\_\+chain()}}, \mbox{\hyperlink{group__Eina__Future_gae4c1896c7eb8b40933c7b0640c881f33}{eina\+\_\+future\+\_\+then\+\_\+from\+\_\+desc()}} and friends and its main objective is to simplify error handling and Eina\+\_\+\+Value type checks. It uses three callbacks to inform the user about the future\textquotesingle{}s result and life cycle. They are\+:

\begin{DoxyItemize}
\item \mbox{\hyperlink{struct__Eina__Future__Cb__Easy__Desc_a15ec41c953419c10745fb2738fd311d5}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc\+::success}}\+: This callback is called when the future execution was successful, that is, no errors occurred and the result type matches \mbox{\hyperlink{struct__Eina__Future__Cb__Easy__Desc_a5112a2ccff7f8b1c48c242763a948d05}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc\+::success\+\_\+type}}. In case \mbox{\hyperlink{struct__Eina__Future__Cb__Easy__Desc_a5112a2ccff7f8b1c48c242763a948d05}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc\+::success\+\_\+type}} is {\ttfamily N\+U\+LL}, this function will only be called if the future did not report an error. The value returned by this function will be propagated to the next future in the chain (if any).\end{DoxyItemize}
\begin{DoxyItemize}
\item \mbox{\hyperlink{struct__Eina__Future__Cb__Easy__Desc_af785ac4390997ecbdf13e89aa4840c34}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc\+::error}}\+: This callback is called when the future result is an error or \mbox{\hyperlink{struct__Eina__Future__Cb__Easy__Desc_a5112a2ccff7f8b1c48c242763a948d05}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc\+::success\+\_\+type}} does not match the future result type. The value returned by this function will be propagated to the next future in the chain (if any).\end{DoxyItemize}
\begin{DoxyItemize}
\item \mbox{\hyperlink{struct__Eina__Future__Cb__Easy__Desc_a9ae635f5d45413527f77755a19abb77e}{Eina\+\_\+\+Future\+\_\+\+Cb\+\_\+\+Easy\+\_\+\+Desc\+::free}}\+: Called after the future was freed and any resources allocated must be freed at this point. This callback is always called.\end{DoxyItemize}
Check the example below for a sample usage\+:


\begin{DoxyCode}
\textcolor{keyword}{static} \mbox{\hyperlink{struct__Eina__Value}{Eina\_Value}}
\_file\_size\_ok(\textcolor{keywordtype}{void} *data, \mbox{\hyperlink{struct__Eina__Value}{Eina\_Value}} v)
\{
  Ctx *ctx = data;
  \textcolor{comment}{// Since an Eina\_Future\_Cb\_Easy\_Desc::success\_type was provided, there's no need to check the value type}
  \textcolor{keywordtype}{int} s;
  \mbox{\hyperlink{group__Eina__Value__Value__Group_ga6f088fe6c6127d808cdf214b355cbdeb}{eina\_value\_get}}(&v, &s);
  printf(\textcolor{stringliteral}{"File size is %d bytes\(\backslash\)n"}, s);
  ctx->file\_size = s;
  \textcolor{keywordflow}{return} v;
\}

\textcolor{keyword}{static} \mbox{\hyperlink{struct__Eina__Value}{Eina\_Value}}
\_file\_size\_err(\textcolor{keywordtype}{void} *data, \mbox{\hyperlink{group__Eina__Error__Group_ga95b3cbb33e987e7d92a81ea785001686}{Eina\_Error}} err)
\{
  fprintf(stderr, \textcolor{stringliteral}{"Could not read the file size. Reason: %s\(\backslash\)n"}, 
      \mbox{\hyperlink{group__Eina__Error__Group_ga3402bc58a9f854391eb35fa7650edda5}{eina\_error\_msg\_get}}(err));
  \textcolor{comment}{// Stop propagating the error.}
  \textcolor{keywordflow}{return} \mbox{\hyperlink{group__Eina__Value__Group_ga06540fbaf4a53dd90133deb813d4f102}{EINA\_VALUE\_EMPTY}};
\}

\textcolor{keyword}{static} \textcolor{keywordtype}{void}
\_future\_freed(\textcolor{keywordtype}{void} *data, \textcolor{keyword}{const} Eina\_Future dead)
\{
  Ctx *ctx = data;
  printf(\textcolor{stringliteral}{"Future %p deleted\(\backslash\)n"}, dead);
  ctx->file\_size\_handler\_cb(ctx->file\_size);
  free(ctx);
\}

@code
\textcolor{keywordtype}{void} do\_work(File\_Size\_Handler\_Cb cb)
\{
  Ctx *ctx = malloc(\textcolor{keyword}{sizeof}(Ctx));
  ctx->f = get\_file\_size(\textcolor{stringliteral}{"/tmp/todo.txt"});
  ctx->file\_size = -1;
  ctx->file\_size\_handler\_cb = cb;
  \mbox{\hyperlink{group__Eina__Future_ga1125fb075daa2ac3548ee4a55d69190c}{eina\_future\_then\_easy}}(f, \_file\_size\_ok, \_file\_size\_err, \_future\_freed, 
      \mbox{\hyperlink{group__Eina__Value__Group_ga17974fd9ab773a3efefd591ffde58f77}{EINA\_VALUE\_TYPE\_INT}}, ctx);
\}
\end{DoxyCode}



\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em desc} & The easy callback\textquotesingle{}s description. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An \#\+Eina\+\_\+\+Future\+\_\+\+Desc
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_gaeb721d890aa5eac3103a982edde76e9a}{eina\+\_\+future\+\_\+chain()}} 

\mbox{\hyperlink{group__Eina__Future_ga9f4948790f1f84de93ba8195520d4a92}{eina\+\_\+future\+\_\+then()}} 

\mbox{\hyperlink{group__Eina__Future_ga57f56d13f3f3bb13651ea3b81b59e8f1}{eina\+\_\+future\+\_\+cb\+\_\+easy()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eina__Future_ga17094a3e3dc964ef33313106041dc4e0}\label{group__Eina__Future_ga17094a3e3dc964ef33313106041dc4e0}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+promise\+\_\+all\+\_\+array@{eina\+\_\+promise\+\_\+all\+\_\+array}}
\index{eina\+\_\+promise\+\_\+all\+\_\+array@{eina\+\_\+promise\+\_\+all\+\_\+array}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+promise\+\_\+all\+\_\+array()}{eina\_promise\_all\_array()}}
{\footnotesize\ttfamily Eina\+\_\+\+Promise$\ast$ eina\+\_\+promise\+\_\+all\+\_\+array (\begin{DoxyParamCaption}\item[{Eina\+\_\+\+Future $\ast$}]{array\mbox{[}$\,$\mbox{]} }\end{DoxyParamCaption})}



Creates an all promise. 

Creates a promise that is resolved once all the futures from the {\ttfamily array} are resolved. The promise is resolved with an Eina\+\_\+\+Value type array which contains E\+I\+N\+A\+\_\+\+V\+A\+L\+U\+E\+\_\+\+T\+Y\+P\+E\+\_\+\+V\+A\+L\+UE elements. The result array is ordered according to the {\ttfamily array} argument. Example\+:


\begin{DoxyCode}
\textcolor{keyword}{static} \textcolor{keyword}{const} \textcolor{keywordtype}{char} *
\_get\_operation\_name\_by\_index(\textcolor{keywordtype}{int} idx)
\{
  \textcolor{keywordflow}{switch} (idx)
  \{
     \textcolor{keywordflow}{case} 0: \textcolor{keywordflow}{return} \textcolor{stringliteral}{"Get file data"};
     \textcolor{keywordflow}{case} 1: \textcolor{keywordflow}{return} \textcolor{stringliteral}{"Get file size"};
     \textcolor{keywordflow}{default}: \textcolor{keywordflow}{return} \textcolor{stringliteral}{"sum"};
  \}
\}

\textcolor{keyword}{static} \mbox{\hyperlink{struct__Eina__Value}{Eina\_Value}}
\_all\_cb(\textcolor{keyword}{const} \textcolor{keywordtype}{void} *data \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \textcolor{keyword}{const} \mbox{\hyperlink{struct__Eina__Value}{Eina\_Value}} array, \textcolor{keyword}{const} Eina\_Future *dead 
      \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})
\{
   \mbox{\hyperlink{group__Eina__Error__Group_ga95b3cbb33e987e7d92a81ea785001686}{Eina\_Error}} err;
   \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} i, len;

   \textcolor{keywordflow}{if} (array.\mbox{\hyperlink{struct__Eina__Value_a1fd07b3214c901eec252a786cca47239}{type}} == \mbox{\hyperlink{group__Eina__Value__Group_ga28f6fb160baf3068e7c67ffba0a29c20}{EINA\_VALUE\_TYPE\_ERROR}})
    \{
      \mbox{\hyperlink{group__Eina__Value__Value__Group_ga6f088fe6c6127d808cdf214b355cbdeb}{eina\_value\_get}}(&array, &err);
      fprintf(stderr, \textcolor{stringliteral}{"Could not complete all operations. Reason: %s\(\backslash\)n"}, 
      \mbox{\hyperlink{group__Eina__Error__Group_ga3402bc58a9f854391eb35fa7650edda5}{eina\_error\_msg\_get}}(err));
      \textcolor{keywordflow}{return} array;
    \}
   len = \mbox{\hyperlink{group__Eina__Value__Array__Group_ga758e2a63aa537f872bdbd07b87ea6115}{eina\_value\_array\_count}}(&array);
   \textcolor{keywordflow}{for} (i = 0; i < len; i++)
    \{
      \mbox{\hyperlink{struct__Eina__Value}{Eina\_Value}} v;
      \mbox{\hyperlink{group__Eina__Value__Array__Group_ga9358dce2404ed0926db502539f8a1318}{eina\_value\_array\_get}}(&array, i, &v);
      \textcolor{keywordflow}{if} (v.type == \mbox{\hyperlink{group__Eina__Value__Group_ga28f6fb160baf3068e7c67ffba0a29c20}{EINA\_VALUE\_TYPE\_ERROR}})
       \{
         \mbox{\hyperlink{group__Eina__Value__Value__Group_ga6f088fe6c6127d808cdf214b355cbdeb}{eina\_value\_get}}(&v, &err);
         fprintf(stderr, \textcolor{stringliteral}{"Could not complete operation '%s'. Reason: %s\(\backslash\)n"}, \_get\_operation\_name\_by\_index(i)
      , \mbox{\hyperlink{group__Eina__Error__Group_ga3402bc58a9f854391eb35fa7650edda5}{eina\_error\_msg\_get}}(err));
         \textcolor{keywordflow}{continue};
       \}
      \textcolor{keywordflow}{if} (!i)
       \{
          \textcolor{keyword}{const} \textcolor{keywordtype}{char} *msg;
          \textcolor{keywordflow}{if} (v.type != \mbox{\hyperlink{group__Eina__Value__Group_ga916f76c8d5ffd4c3ee3c322a54efd0b7}{EINA\_VALUE\_TYPE\_STRING}})
          \{
            fprintf(stderr, \textcolor{stringliteral}{"Operation %s expects '%s' - received '%s'\(\backslash\)n"}, \_get\_operation\_name\_by\_index(i),
       \mbox{\hyperlink{group__Eina__Value__Group_ga916f76c8d5ffd4c3ee3c322a54efd0b7}{EINA\_VALUE\_TYPE\_STRING}}->\mbox{\hyperlink{struct__Eina__Value__Type_ada10b4da2ce18ea23e10dc048f470af0}{name}}, v.type->name);
            \textcolor{keywordflow}{continue};
          \}
          \mbox{\hyperlink{group__Eina__Value__Value__Group_ga6f088fe6c6127d808cdf214b355cbdeb}{eina\_value\_get}}(&v, &msg);
          printf(\textcolor{stringliteral}{"File content:%s\(\backslash\)n"}, msg);
       \}
      \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (i == 1)
       \{
          \textcolor{keywordtype}{int} i;
          \textcolor{keywordflow}{if} (v.type != \mbox{\hyperlink{group__Eina__Value__Group_ga17974fd9ab773a3efefd591ffde58f77}{EINA\_VALUE\_TYPE\_INT}})
          \{
            fprintf(stderr, \textcolor{stringliteral}{"Operation %s expects '%s' - received '%s'\(\backslash\)n"}, \_get\_operation\_name\_by\_index(i),
       \mbox{\hyperlink{group__Eina__Value__Group_ga17974fd9ab773a3efefd591ffde58f77}{EINA\_VALUE\_TYPE\_INT}}->\mbox{\hyperlink{struct__Eina__Value__Type_ada10b4da2ce18ea23e10dc048f470af0}{name}}, v.type->name);
            \textcolor{keywordflow}{continue};
          \}
          \mbox{\hyperlink{group__Eina__Value__Value__Group_ga6f088fe6c6127d808cdf214b355cbdeb}{eina\_value\_get}}(&v, &i);
          printf(\textcolor{stringliteral}{"File size: %d\(\backslash\)n"}, i);
       \}
       \textcolor{keywordflow}{else}
       \{
          \textcolor{keywordtype}{double} p;
          \textcolor{keywordflow}{if} (v.type != \mbox{\hyperlink{group__Eina__Value__Group_ga959961fb03cd94a84ab469245c543732}{EINA\_VALUE\_TYPE\_DOUBLE}})
          \{
            fprintf(stderr, \textcolor{stringliteral}{"Operation %s expects '%s' - received '%s'\(\backslash\)n"}, \_get\_operation\_name\_by\_index(i),
       \mbox{\hyperlink{group__Eina__Value__Group_ga959961fb03cd94a84ab469245c543732}{EINA\_VALUE\_TYPE\_DOUBLE}}->\mbox{\hyperlink{struct__Eina__Value__Type_ada10b4da2ce18ea23e10dc048f470af0}{name}}, v.type->name);
            \textcolor{keywordflow}{continue};
          \}
          \mbox{\hyperlink{group__Eina__Value__Value__Group_ga6f088fe6c6127d808cdf214b355cbdeb}{eina\_value\_get}}(&v, &p);
          printf(\textcolor{stringliteral}{"50 places of PI: %f\(\backslash\)n"}, p);
       \}
    \}
   \textcolor{keywordflow}{return} array;
\}

\textcolor{keywordtype}{void} func(\textcolor{keywordtype}{void})
\{
  Eina\_Future *f1, *f2, *f3, f\_all;

  f1 = read\_file(\textcolor{stringliteral}{"/tmp/todo.txt"});
  f2 = get\_file\_size(\textcolor{stringliteral}{"/tmp/file.txt"});
  \textcolor{comment}{// calculates 50 places of PI}
  f3 = calc\_pi(50);
  f\_all = \mbox{\hyperlink{group__Eina__Future_ga70fb993acf2af507103c0c161412767e}{eina\_future\_all}}(f1, f2, f3);
  \mbox{\hyperlink{group__Eina__Future_ga9f4948790f1f84de93ba8195520d4a92}{eina\_future\_then}}(f\_all, \_all\_cb, NULL);
\}
\end{DoxyCode}



\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in,out}  & {\em array} & An array of futures, {\ttfamily \mbox{\hyperlink{group__Eina__Future_ga1161af18cd7714ab7fd40da2afa39164}{E\+I\+N\+A\+\_\+\+F\+U\+T\+U\+R\+E\+\_\+\+S\+E\+N\+T\+I\+N\+EL}}} terminated. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A promise or {\ttfamily N\+U\+LL} on error. 
\end{DoxyReturn}
\begin{DoxyNote}{Note}
On error all the futures will be C\+A\+N\+C\+E\+L\+ED. 
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga8838591bc2163cac63ba6a5180a63091}{eina\+\_\+future\+\_\+all\+\_\+array()}} 
\end{DoxySeeAlso}


Referenced by eina\+\_\+future\+\_\+all\+\_\+array().

\mbox{\Hypertarget{group__Eina__Future_ga13d85b5282b02260407c103690b2b3f4}\label{group__Eina__Future_ga13d85b5282b02260407c103690b2b3f4}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+promise\+\_\+race\+\_\+array@{eina\+\_\+promise\+\_\+race\+\_\+array}}
\index{eina\+\_\+promise\+\_\+race\+\_\+array@{eina\+\_\+promise\+\_\+race\+\_\+array}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+promise\+\_\+race\+\_\+array()}{eina\_promise\_race\_array()}}
{\footnotesize\ttfamily Eina\+\_\+\+Promise$\ast$ eina\+\_\+promise\+\_\+race\+\_\+array (\begin{DoxyParamCaption}\item[{Eina\+\_\+\+Future $\ast$}]{array\mbox{[}$\,$\mbox{]} }\end{DoxyParamCaption})}



Creates a race promise. 

Creates a promise that resolves when a future from the {\ttfamily array} is completed. The remaining futures will be canceled with the error code {\ttfamily E\+C\+A\+N\+C\+E\+L\+ED}

The resulting value is an E\+I\+N\+A\+\_\+\+V\+A\+L\+U\+E\+\_\+\+T\+Y\+P\+E\+\_\+\+S\+T\+R\+U\+CT with two fields\+:

\begin{DoxyItemize}
\item A field named \char`\"{}value\char`\"{} which contains an Eina\+\_\+\+Value with the result itself. \item A field named \char`\"{}index\char`\"{} which is an int that contains the index of the completed function relative to the {\ttfamily array};\end{DoxyItemize}
Example.


\begin{DoxyCode}
\textcolor{keyword}{static} \textcolor{keyword}{const} \textcolor{keywordtype}{char} *
\_get\_operation\_name\_by\_index(\textcolor{keywordtype}{int} idx)
\{
  \textcolor{keywordflow}{switch} (idx)
  \{
     \textcolor{keywordflow}{case} 0: \textcolor{keywordflow}{return} \textcolor{stringliteral}{"Get file data"};
     \textcolor{keywordflow}{case} 1: \textcolor{keywordflow}{return} \textcolor{stringliteral}{"Get file size"};
     \textcolor{keywordflow}{default}: \textcolor{keywordflow}{return} \textcolor{stringliteral}{"sum"};
  \}
\}

\textcolor{keyword}{static} \mbox{\hyperlink{struct__Eina__Value}{Eina\_Value}}
\_race\_cb(\textcolor{keyword}{const} \textcolor{keywordtype}{void} *data \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \textcolor{keyword}{const} \mbox{\hyperlink{struct__Eina__Value}{Eina\_Value}} v)
\{
   \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} i;
   \mbox{\hyperlink{struct__Eina__Value}{Eina\_Value}} result;
   \mbox{\hyperlink{group__Eina__Error__Group_ga95b3cbb33e987e7d92a81ea785001686}{Eina\_Error}} err;
   \mbox{\hyperlink{struct__Eina__Value__Struct}{Eina\_Value\_Struct}} *st;

    \textcolor{comment}{// No need to check for the 'v' type. eina\_future\_cb\_easy() did that for us.}
    \textcolor{comment}{// However we should check if the struct has the correct description}
    st = eina\_value\_memory\_get(&v);
    \textcolor{keywordflow}{if} (st->\mbox{\hyperlink{struct__Eina__Value__Struct_a9bb23988e2748e4f6202ce4e4ee4b4a1}{desc}} != \mbox{\hyperlink{group__Eina__Future_ga8bf7d696d1a904a74bd5f9504a3c3d9f}{EINA\_PROMISE\_RACE\_STRUCT\_DESC}})
     \{
        fprintf(stderr, \textcolor{stringliteral}{"Eina\_Value is not a race struct\(\backslash\)n"});
        \textcolor{keywordflow}{return} v;
     \}
    \mbox{\hyperlink{group__Eina__Value__Struct__Group_ga07a7cc420f03a247dffe4d13ce1ad6c5}{eina\_value\_struct\_get}}(&v, \textcolor{stringliteral}{"index"}, &i);
    \textcolor{comment}{// Get the operation result}
    \mbox{\hyperlink{group__Eina__Value__Struct__Group_ga07a7cc420f03a247dffe4d13ce1ad6c5}{eina\_value\_struct\_get}}(&v, \textcolor{stringliteral}{"value"}, &result);
    \textcolor{keywordflow}{if} (!i)
     \{
       \textcolor{keyword}{const} \textcolor{keywordtype}{char} *msg;
       \textcolor{keywordflow}{if} (result.\mbox{\hyperlink{struct__Eina__Value_a1fd07b3214c901eec252a786cca47239}{type}} != \mbox{\hyperlink{group__Eina__Value__Group_ga916f76c8d5ffd4c3ee3c322a54efd0b7}{EINA\_VALUE\_TYPE\_STRING}})
         fprintf(stderr, \textcolor{stringliteral}{"Operation %s expects '%s' - received '%s'\(\backslash\)n"}, \_get\_operation\_name\_by\_index(i), 
      \mbox{\hyperlink{group__Eina__Value__Group_ga916f76c8d5ffd4c3ee3c322a54efd0b7}{EINA\_VALUE\_TYPE\_STRING}}->\mbox{\hyperlink{struct__Eina__Value__Type_ada10b4da2ce18ea23e10dc048f470af0}{name}}, result.\mbox{\hyperlink{struct__Eina__Value_a1fd07b3214c901eec252a786cca47239}{type}}->\mbox{\hyperlink{struct__Eina__Value__Type_ada10b4da2ce18ea23e10dc048f470af0}{name}});
       \textcolor{keywordflow}{else}
       \{
         \mbox{\hyperlink{group__Eina__Value__Value__Group_ga6f088fe6c6127d808cdf214b355cbdeb}{eina\_value\_get}}(&result, &msg);
         printf(\textcolor{stringliteral}{"File content:%s\(\backslash\)n"}, msg);
       \}
     \}
    \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (i == 1)
      \{
        \textcolor{keywordtype}{int} i;
        \textcolor{keywordflow}{if} (result.\mbox{\hyperlink{struct__Eina__Value_a1fd07b3214c901eec252a786cca47239}{type}} != \mbox{\hyperlink{group__Eina__Value__Group_ga17974fd9ab773a3efefd591ffde58f77}{EINA\_VALUE\_TYPE\_INT}})
          fprintf(stderr, \textcolor{stringliteral}{"Operation %s expects '%s' - received '%s'\(\backslash\)n"}, \_get\_operation\_name\_by\_index(i), 
      \mbox{\hyperlink{group__Eina__Value__Group_ga17974fd9ab773a3efefd591ffde58f77}{EINA\_VALUE\_TYPE\_INT}}->\mbox{\hyperlink{struct__Eina__Value__Type_ada10b4da2ce18ea23e10dc048f470af0}{name}}, v.type->name);
        \textcolor{keywordflow}{else}
        \{
          \mbox{\hyperlink{group__Eina__Value__Value__Group_ga6f088fe6c6127d808cdf214b355cbdeb}{eina\_value\_get}}(&result, &i);
          printf(\textcolor{stringliteral}{"File size: %d\(\backslash\)n"}, i);
        \}
      \}
     \textcolor{keywordflow}{else}
      \{
        \textcolor{keywordtype}{double} p;
        \textcolor{keywordflow}{if} (result.\mbox{\hyperlink{struct__Eina__Value_a1fd07b3214c901eec252a786cca47239}{type}} != \mbox{\hyperlink{group__Eina__Value__Group_ga959961fb03cd94a84ab469245c543732}{EINA\_VALUE\_TYPE\_DOUBLE}})
           fprintf(stderr, \textcolor{stringliteral}{"Operation %s expects '%s' - received '%s'\(\backslash\)n"}, \_get\_operation\_name\_by\_index(i), 
      \mbox{\hyperlink{group__Eina__Value__Group_ga959961fb03cd94a84ab469245c543732}{EINA\_VALUE\_TYPE\_DOUBLE}}->\mbox{\hyperlink{struct__Eina__Value__Type_ada10b4da2ce18ea23e10dc048f470af0}{name}}, result.\mbox{\hyperlink{struct__Eina__Value_a1fd07b3214c901eec252a786cca47239}{type}}->\mbox{\hyperlink{struct__Eina__Value__Type_ada10b4da2ce18ea23e10dc048f470af0}{name}});
        \textcolor{keywordflow}{else}
         \{
           \mbox{\hyperlink{group__Eina__Value__Value__Group_ga6f088fe6c6127d808cdf214b355cbdeb}{eina\_value\_get}}(&result, &p);
           printf(\textcolor{stringliteral}{"50 places of PI: %f\(\backslash\)n"}, p);
         \}
      \}
    \mbox{\hyperlink{group__Eina__Value__Value__Group_ga940660709a2862bafac92f47bb721a68}{eina\_value\_flush}}(&result);
    \textcolor{keywordflow}{return} v;
\}

\textcolor{keyword}{static} \mbox{\hyperlink{struct__Eina__Value}{Eina\_Value}}
\_race\_err(\textcolor{keywordtype}{void} *data, \mbox{\hyperlink{group__Eina__Error__Group_ga95b3cbb33e987e7d92a81ea785001686}{Eina\_Error}} err)
\{
   fprintf(stderr, \textcolor{stringliteral}{"Could not complete the race future. Reason: %s\(\backslash\)n"}, 
      \mbox{\hyperlink{group__Eina__Error__Group_ga3402bc58a9f854391eb35fa7650edda5}{eina\_error\_msg\_get}}(err));
   \textcolor{keywordflow}{return} \mbox{\hyperlink{group__Eina__Value__Group_ga06540fbaf4a53dd90133deb813d4f102}{EINA\_VALUE\_EMPTY}};
\}

\textcolor{keywordtype}{void} func(\textcolor{keywordtype}{void})
\{
  \textcolor{keyword}{static} \textcolor{keyword}{const} *Eina\_Future[] = \{NULL, NULL, NULL, NULL\};
  \mbox{\hyperlink{struct__Eina__List}{Eina\_List}} *l = NULL;

  futures[0] = read\_file(\textcolor{stringliteral}{"/tmp/todo.txt"});
  futures[1] = get\_file\_size(\textcolor{stringliteral}{"/tmp/file.txt"});
  \textcolor{comment}{// calculates 50 places of PI}
  futures[2] = calc\_pi(50);
  f\_race = \mbox{\hyperlink{group__Eina__Future_ga2c63774e66100dc5f4b91f88f0efc5f1}{eina\_future\_race\_array}}(futures);
  \mbox{\hyperlink{group__Eina__Future_ga1125fb075daa2ac3548ee4a55d69190c}{eina\_future\_then\_easy}}(f\_race, \_race\_cb, \_race\_err, NULL, 
      \mbox{\hyperlink{group__Eina__Value__Group_ga8147143699c5f5a686415090080d3f9e}{EINA\_VALUE\_TYPE\_STRUCT}}, NULL);
\}
\end{DoxyCode}



\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in,out}  & {\em array} & An array of futures, {\ttfamily \mbox{\hyperlink{group__Eina__Future_ga1161af18cd7714ab7fd40da2afa39164}{E\+I\+N\+A\+\_\+\+F\+U\+T\+U\+R\+E\+\_\+\+S\+E\+N\+T\+I\+N\+EL}}} terminated. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A promise or {\ttfamily N\+U\+LL} on error. 
\end{DoxyReturn}
\begin{DoxyNote}{Note}
On error all the futures will be C\+A\+N\+C\+E\+L\+ED. 
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga2c63774e66100dc5f4b91f88f0efc5f1}{eina\+\_\+future\+\_\+race\+\_\+array()}} 

\mbox{\hyperlink{struct__Eina__Future__Race__Result}{\+\_\+\+Eina\+\_\+\+Future\+\_\+\+Race\+\_\+\+Result}} 
\end{DoxySeeAlso}


Referenced by eina\+\_\+future\+\_\+race\+\_\+array().

\mbox{\Hypertarget{group__Eina__Future_ga8838591bc2163cac63ba6a5180a63091}\label{group__Eina__Future_ga8838591bc2163cac63ba6a5180a63091}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+all\+\_\+array@{eina\+\_\+future\+\_\+all\+\_\+array}}
\index{eina\+\_\+future\+\_\+all\+\_\+array@{eina\+\_\+future\+\_\+all\+\_\+array}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+all\+\_\+array()}{eina\_future\_all\_array()}}
{\footnotesize\ttfamily static Eina\+\_\+\+Future$\ast$ eina\+\_\+future\+\_\+all\+\_\+array (\begin{DoxyParamCaption}\item[{Eina\+\_\+\+Future $\ast$}]{array\mbox{[}$\,$\mbox{]} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



Creates a future that will be resolved once all futures from {\ttfamily array} is resolved. 

This is a helper over \mbox{\hyperlink{group__Eina__Future_ga17094a3e3dc964ef33313106041dc4e0}{eina\+\_\+promise\+\_\+all\+\_\+array()}}


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in,out}  & {\em array} & A future array, must be terminated with \mbox{\hyperlink{group__Eina__Future_ga1161af18cd7714ab7fd40da2afa39164}{E\+I\+N\+A\+\_\+\+F\+U\+T\+U\+R\+E\+\_\+\+S\+E\+N\+T\+I\+N\+EL}} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A future. 
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga17094a3e3dc964ef33313106041dc4e0}{eina\+\_\+promise\+\_\+all\+\_\+array()}} 

\mbox{\hyperlink{group__Eina__Future_ga1161af18cd7714ab7fd40da2afa39164}{E\+I\+N\+A\+\_\+\+F\+U\+T\+U\+R\+E\+\_\+\+S\+E\+N\+T\+I\+N\+EL}} 
\end{DoxySeeAlso}


References eina\+\_\+future\+\_\+new(), and eina\+\_\+promise\+\_\+all\+\_\+array().

\mbox{\Hypertarget{group__Eina__Future_ga2c63774e66100dc5f4b91f88f0efc5f1}\label{group__Eina__Future_ga2c63774e66100dc5f4b91f88f0efc5f1}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!eina\+\_\+future\+\_\+race\+\_\+array@{eina\+\_\+future\+\_\+race\+\_\+array}}
\index{eina\+\_\+future\+\_\+race\+\_\+array@{eina\+\_\+future\+\_\+race\+\_\+array}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{eina\+\_\+future\+\_\+race\+\_\+array()}{eina\_future\_race\_array()}}
{\footnotesize\ttfamily static Eina\+\_\+\+Future$\ast$ eina\+\_\+future\+\_\+race\+\_\+array (\begin{DoxyParamCaption}\item[{Eina\+\_\+\+Future $\ast$}]{array\mbox{[}$\,$\mbox{]} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



Creates a future that will be resolved once a future {\ttfamily array} is resolved. 

This is a helper over \mbox{\hyperlink{group__Eina__Future_ga13d85b5282b02260407c103690b2b3f4}{eina\+\_\+promise\+\_\+race\+\_\+array()}}


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in,out}  & {\em array} & A future array, must be terminated with \mbox{\hyperlink{group__Eina__Future_ga1161af18cd7714ab7fd40da2afa39164}{E\+I\+N\+A\+\_\+\+F\+U\+T\+U\+R\+E\+\_\+\+S\+E\+N\+T\+I\+N\+EL}} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A future. 
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga13d85b5282b02260407c103690b2b3f4}{eina\+\_\+promise\+\_\+race\+\_\+array()}} 

\mbox{\hyperlink{group__Eina__Future_ga1161af18cd7714ab7fd40da2afa39164}{E\+I\+N\+A\+\_\+\+F\+U\+T\+U\+R\+E\+\_\+\+S\+E\+N\+T\+I\+N\+EL}} 
\end{DoxySeeAlso}


References eina\+\_\+future\+\_\+new(), and eina\+\_\+promise\+\_\+race\+\_\+array().



\subsection{Variable Documentation}
\mbox{\Hypertarget{group__Eina__Future_ga64c93dabf373a53ecbd56615232a4966}\label{group__Eina__Future_ga64c93dabf373a53ecbd56615232a4966}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!E\+I\+N\+A\+\_\+\+P\+R\+O\+M\+I\+S\+E\+\_\+\+R\+A\+C\+E\+\_\+\+S\+T\+R\+U\+C\+T\+\_\+\+D\+E\+SC@{E\+I\+N\+A\+\_\+\+P\+R\+O\+M\+I\+S\+E\+\_\+\+R\+A\+C\+E\+\_\+\+S\+T\+R\+U\+C\+T\+\_\+\+D\+E\+SC}}
\index{E\+I\+N\+A\+\_\+\+P\+R\+O\+M\+I\+S\+E\+\_\+\+R\+A\+C\+E\+\_\+\+S\+T\+R\+U\+C\+T\+\_\+\+D\+E\+SC@{E\+I\+N\+A\+\_\+\+P\+R\+O\+M\+I\+S\+E\+\_\+\+R\+A\+C\+E\+\_\+\+S\+T\+R\+U\+C\+T\+\_\+\+D\+E\+SC}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{E\+I\+N\+A\+\_\+\+P\+R\+O\+M\+I\+S\+E\+\_\+\+R\+A\+C\+E\+\_\+\+S\+T\+R\+U\+C\+T\+\_\+\+D\+E\+SC}{EINA\_PROMISE\_RACE\_STRUCT\_DESC}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily const \mbox{\hyperlink{group__Eina__Value__Struct__Group_ga69bcc1965b7b57ef713b0370d10f593d}{Eina\+\_\+\+Value\+\_\+\+Struct\+\_\+\+Desc}}$\ast$ E\+I\+N\+A\+\_\+\+P\+R\+O\+M\+I\+S\+E\+\_\+\+R\+A\+C\+E\+\_\+\+S\+T\+R\+U\+C\+T\+\_\+\+D\+E\+SC}



A pointer to the race struct description, which is used by \mbox{\hyperlink{group__Eina__Future_ga13d85b5282b02260407c103690b2b3f4}{eina\+\_\+promise\+\_\+race\+\_\+array()}};. 

This struct contains two members\+: \begin{DoxyItemize}
\item value An E\+I\+N\+A\+\_\+\+V\+A\+L\+U\+E\+\_\+\+T\+Y\+P\+E\+\_\+\+V\+A\+L\+UE that contains the future result that wont the race. \item index An E\+I\+N\+A\+\_\+\+V\+A\+L\+U\+E\+\_\+\+T\+Y\+P\+E\+\_\+\+U\+I\+NT that contains the future index that won the race.\end{DoxyItemize}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga13d85b5282b02260407c103690b2b3f4}{eina\+\_\+promise\+\_\+race\+\_\+array()}} 

\mbox{\hyperlink{struct__Eina__Future__Race__Result}{\+\_\+\+Eina\+\_\+\+Future\+\_\+\+Race\+\_\+\+Result}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eina__Future_ga8bf7d696d1a904a74bd5f9504a3c3d9f}\label{group__Eina__Future_ga8bf7d696d1a904a74bd5f9504a3c3d9f}} 
\index{Eina\+\_\+\+Future@{Eina\+\_\+\+Future}!E\+I\+N\+A\+\_\+\+P\+R\+O\+M\+I\+S\+E\+\_\+\+R\+A\+C\+E\+\_\+\+S\+T\+R\+U\+C\+T\+\_\+\+D\+E\+SC@{E\+I\+N\+A\+\_\+\+P\+R\+O\+M\+I\+S\+E\+\_\+\+R\+A\+C\+E\+\_\+\+S\+T\+R\+U\+C\+T\+\_\+\+D\+E\+SC}}
\index{E\+I\+N\+A\+\_\+\+P\+R\+O\+M\+I\+S\+E\+\_\+\+R\+A\+C\+E\+\_\+\+S\+T\+R\+U\+C\+T\+\_\+\+D\+E\+SC@{E\+I\+N\+A\+\_\+\+P\+R\+O\+M\+I\+S\+E\+\_\+\+R\+A\+C\+E\+\_\+\+S\+T\+R\+U\+C\+T\+\_\+\+D\+E\+SC}!Eina\+\_\+\+Future@{Eina\+\_\+\+Future}}
\subsubsection{\texorpdfstring{E\+I\+N\+A\+\_\+\+P\+R\+O\+M\+I\+S\+E\+\_\+\+R\+A\+C\+E\+\_\+\+S\+T\+R\+U\+C\+T\+\_\+\+D\+E\+SC}{EINA\_PROMISE\_RACE\_STRUCT\_DESC}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily E\+I\+N\+A\+\_\+\+P\+R\+O\+M\+I\+S\+E\+\_\+\+R\+A\+C\+E\+\_\+\+S\+T\+R\+U\+C\+T\+\_\+\+D\+E\+SC = \&R\+A\+C\+E\+\_\+\+S\+T\+R\+U\+C\+T\+\_\+\+D\+E\+SC}



A pointer to the race struct description, which is used by \mbox{\hyperlink{group__Eina__Future_ga13d85b5282b02260407c103690b2b3f4}{eina\+\_\+promise\+\_\+race\+\_\+array()}};. 

This struct contains two members\+: \begin{DoxyItemize}
\item value An E\+I\+N\+A\+\_\+\+V\+A\+L\+U\+E\+\_\+\+T\+Y\+P\+E\+\_\+\+V\+A\+L\+UE that contains the future result that wont the race. \item index An E\+I\+N\+A\+\_\+\+V\+A\+L\+U\+E\+\_\+\+T\+Y\+P\+E\+\_\+\+U\+I\+NT that contains the future index that won the race.\end{DoxyItemize}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga13d85b5282b02260407c103690b2b3f4}{eina\+\_\+promise\+\_\+race\+\_\+array()}} 

\mbox{\hyperlink{struct__Eina__Future__Race__Result}{\+\_\+\+Eina\+\_\+\+Future\+\_\+\+Race\+\_\+\+Result}} 
\end{DoxySeeAlso}
