\doxysection{\+\_\+\+Eina\+\_\+\+Future\+\_\+\+Scheduler Struct Reference}
\hypertarget{struct__Eina__Future__Scheduler}{}\label{struct__Eina__Future__Scheduler}\index{\_Eina\_Future\_Scheduler@{\_Eina\_Future\_Scheduler}}


This struct is used as a bridge between Eina and the future scheduler.  




{\ttfamily \#include $<$eina\+\_\+promise.\+h$>$}

\doxysubsubsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__Eina__Future__Callbacks_ga8ecbf4d4816b354fad992cd5874c656a}{Eina\+\_\+\+Future\+\_\+\+Schedule\+\_\+\+Entry}} \texorpdfstring{$\ast$}{*}(\texorpdfstring{$\ast$}{*} \mbox{\hyperlink{struct__Eina__Future__Scheduler_ad57b2e01e8ba4bd0e2f339fe81573d84}{schedule}} )(\mbox{\hyperlink{group__Eina__Future__Callbacks_ga190fb0e75b86d093db85b05abfd21ebd}{Eina\+\_\+\+Future\+\_\+\+Scheduler}} \texorpdfstring{$\ast$}{*}scheduler, \mbox{\hyperlink{group__Eina__Future__Callbacks_gac685b488df7948131b6405451d0b4fb5}{Eina\+\_\+\+Future\+\_\+\+Scheduler\+\_\+\+Cb}} cb, \mbox{\hyperlink{eina__promise_8h_ae7a10cf718d83b4fbe62671435270480}{Eina\+\_\+\+Future}} \texorpdfstring{$\ast$}{*}f, \mbox{\hyperlink{group__Eina__Value__Group_ga7985e8af6e956ae31b381bf829173cc0}{Eina\+\_\+\+Value}} value)
\begin{DoxyCompactList}\small\item\em Called by {\ttfamily \doxylink{structEina__Future}{Eina\+\_\+\+Future}} when a delivery must be scheduled to a safe context. \end{DoxyCompactList}\item 
void(\texorpdfstring{$\ast$}{*} \mbox{\hyperlink{struct__Eina__Future__Scheduler_ad7e267c5652f88e78c3d1c4ac82d1e09}{recall}} )(\mbox{\hyperlink{group__Eina__Future__Callbacks_ga8ecbf4d4816b354fad992cd5874c656a}{Eina\+\_\+\+Future\+\_\+\+Schedule\+\_\+\+Entry}} \texorpdfstring{$\ast$}{*}entry)
\begin{DoxyCompactList}\small\item\em Called by {\ttfamily \doxylink{structEina__Future}{Eina\+\_\+\+Future}} when a delivery must be canceled. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
This struct is used as a bridge between Eina and the future scheduler. 

By using the functions provided by \doxylink{struct__Eina__Future__Scheduler}{\+\_\+\+Eina\+\_\+\+Future\+\_\+\+Scheduler} Eina can schedule futures resolutions, rejections and cancellations to a safe context.

\begin{DoxySeeAlso}{See also}
\doxylink{group__Eina__Promise_gaabcdc9f302644a86f2cca80e3a0fb049}{eina\+\_\+promise\+\_\+new()} 

\doxylink{group__Eina__Future__Callbacks_ga8ecbf4d4816b354fad992cd5874c656a}{Eina\+\_\+\+Future\+\_\+\+Schedule\+\_\+\+Entry} 

\doxylink{group__Eina__Future__Callbacks_gac685b488df7948131b6405451d0b4fb5}{Eina\+\_\+\+Future\+\_\+\+Scheduler\+\_\+\+Cb} 
\end{DoxySeeAlso}


\doxysubsection{Field Documentation}
\Hypertarget{struct__Eina__Future__Scheduler_ad57b2e01e8ba4bd0e2f339fe81573d84}\label{struct__Eina__Future__Scheduler_ad57b2e01e8ba4bd0e2f339fe81573d84} 
\index{\_Eina\_Future\_Scheduler@{\_Eina\_Future\_Scheduler}!schedule@{schedule}}
\index{schedule@{schedule}!\_Eina\_Future\_Scheduler@{\_Eina\_Future\_Scheduler}}
\doxysubsubsection{\texorpdfstring{schedule}{schedule}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Future__Callbacks_ga8ecbf4d4816b354fad992cd5874c656a}{Eina\+\_\+\+Future\+\_\+\+Schedule\+\_\+\+Entry}} \texorpdfstring{$\ast$}{*}(\texorpdfstring{$\ast$}{*} \+\_\+\+Eina\+\_\+\+Future\+\_\+\+Scheduler\+::schedule) (\mbox{\hyperlink{group__Eina__Future__Callbacks_ga190fb0e75b86d093db85b05abfd21ebd}{Eina\+\_\+\+Future\+\_\+\+Scheduler}} \texorpdfstring{$\ast$}{*}scheduler, \mbox{\hyperlink{group__Eina__Future__Callbacks_gac685b488df7948131b6405451d0b4fb5}{Eina\+\_\+\+Future\+\_\+\+Scheduler\+\_\+\+Cb}} cb, \mbox{\hyperlink{eina__promise_8h_ae7a10cf718d83b4fbe62671435270480}{Eina\+\_\+\+Future}} \texorpdfstring{$\ast$}{*}f, \mbox{\hyperlink{group__Eina__Value__Group_ga7985e8af6e956ae31b381bf829173cc0}{Eina\+\_\+\+Value}} value)}



Called by {\ttfamily \doxylink{structEina__Future}{Eina\+\_\+\+Future}} when a delivery must be scheduled to a safe context. 

i.\+e.\+: after {\ttfamily \doxylink{group__Eina__Promise_ga231f1e09741f0cb0e9ceeef15cf4e4ee}{eina\+\_\+promise\+\_\+resolve()}} 

\begin{DoxyNote}{Note}
Must not be {\ttfamily NULL} 
\end{DoxyNote}
Must call back from a safe context using {\ttfamily cb(f,value)} 
\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em scheduler} & The scheduler to use. \\
\hline
\mbox{\texttt{ in}}  & {\em cb} & The Eina\+\_\+\+Future\+\_\+\+Scheduler\+\_\+\+Cb to be called and deliver the {\ttfamily f} and {\ttfamily value}. \\
\hline
\mbox{\texttt{ in}}  & {\em f} & The future to be delivered to {\ttfamily cb} \\
\hline
\mbox{\texttt{ in}}  & {\em value} & The value to be delivered to {\ttfamily cb} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A scheduled entry or {\ttfamily NULL} on error 
\end{DoxyReturn}


Referenced by \mbox{\hyperlink{group__Eina__Promise_gaabcdc9f302644a86f2cca80e3a0fb049}{eina\+\_\+promise\+\_\+new()}}.

\Hypertarget{struct__Eina__Future__Scheduler_ad7e267c5652f88e78c3d1c4ac82d1e09}\label{struct__Eina__Future__Scheduler_ad7e267c5652f88e78c3d1c4ac82d1e09} 
\index{\_Eina\_Future\_Scheduler@{\_Eina\_Future\_Scheduler}!recall@{recall}}
\index{recall@{recall}!\_Eina\_Future\_Scheduler@{\_Eina\_Future\_Scheduler}}
\doxysubsubsection{\texorpdfstring{recall}{recall}}
{\footnotesize\ttfamily void(\texorpdfstring{$\ast$}{*} \+\_\+\+Eina\+\_\+\+Future\+\_\+\+Scheduler\+::recall) (\mbox{\hyperlink{group__Eina__Future__Callbacks_ga8ecbf4d4816b354fad992cd5874c656a}{Eina\+\_\+\+Future\+\_\+\+Schedule\+\_\+\+Entry}} \texorpdfstring{$\ast$}{*}entry)}



Called by {\ttfamily \doxylink{structEina__Future}{Eina\+\_\+\+Future}} when a delivery must be canceled. 

i.\+e.\+: after {\ttfamily \doxylink{group__Eina__Future_ga5462a38eabc060b163d24c9d7395ae3b}{eina\+\_\+future\+\_\+cancel()}} 

\begin{DoxyNote}{Note}
Must not be {\ttfamily NULL}.
\end{DoxyNote}

\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em entry} & The scheduled event to cancel \\
\hline
\end{DoxyParams}


Referenced by \mbox{\hyperlink{group__Eina__Promise_gaabcdc9f302644a86f2cca80e3a0fb049}{eina\+\_\+promise\+\_\+new()}}.

