\hypertarget{struct__Eina__Future__Scheduler}{}\doxysection{\+\_\+\+Eina\+\_\+\+Future\+\_\+\+Scheduler Struct Reference}
\label{struct__Eina__Future__Scheduler}\index{\_Eina\_Future\_Scheduler@{\_Eina\_Future\_Scheduler}}
\doxysubsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{struct__Eina__Future__Schedule__Entry}{Eina\+\_\+\+Future\+\_\+\+Schedule\+\_\+\+Entry}} $\ast$($\ast$ \mbox{\hyperlink{struct__Eina__Future__Scheduler_ae38d236f08c2a13fa318cd66e8460ede}{schedule}} )(\mbox{\hyperlink{struct__Eina__Future__Scheduler}{Eina\+\_\+\+Future\+\_\+\+Scheduler}} $\ast$scheduler, \mbox{\hyperlink{group__Eina__Promise_gac685b488df7948131b6405451d0b4fb5}{Eina\+\_\+\+Future\+\_\+\+Scheduler\+\_\+\+Cb}} cb, Eina\+\_\+\+Future $\ast$f, \mbox{\hyperlink{group__Eina__Value__Group_ga7985e8af6e956ae31b381bf829173cc0}{Eina\+\_\+\+Value}} value)
\begin{DoxyCompactList}\small\item\em Called by {\ttfamily Eina\+\_\+\+Future} when a delivery must be scheduled to a safe context. \end{DoxyCompactList}\item 
void($\ast$ \mbox{\hyperlink{struct__Eina__Future__Scheduler_ad7e267c5652f88e78c3d1c4ac82d1e09}{recall}} )(\mbox{\hyperlink{struct__Eina__Future__Schedule__Entry}{Eina\+\_\+\+Future\+\_\+\+Schedule\+\_\+\+Entry}} $\ast$entry)
\begin{DoxyCompactList}\small\item\em Called by {\ttfamily Eina\+\_\+\+Future} when a delivery must be canceled. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
A struct that represents an scheduled event. This struct may be used by Eina to cancel a scheduled future.

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

\#\+Eina\+\_\+\+Future\+\_\+\+Scheduler 

\mbox{\hyperlink{group__Eina__Promise_gac685b488df7948131b6405451d0b4fb5}{Eina\+\_\+\+Future\+\_\+\+Scheduler\+\_\+\+Cb}}
\end{DoxySeeAlso}
This struct is used as a bridge between Eina and the future scheduler. By using the functions provided by \mbox{\hyperlink{struct__Eina__Future__Scheduler}{\+\_\+\+Eina\+\_\+\+Future\+\_\+\+Scheduler}} Eina can schedule futures resolutions, rejections and cancellations to a safe context.

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

\#\+Eina\+\_\+\+Future\+\_\+\+Schedule\+\_\+\+Entry 

\mbox{\hyperlink{group__Eina__Promise_gac685b488df7948131b6405451d0b4fb5}{Eina\+\_\+\+Future\+\_\+\+Scheduler\+\_\+\+Cb}} 
\end{DoxySeeAlso}


\doxysubsection{Field Documentation}
\mbox{\Hypertarget{struct__Eina__Future__Scheduler_ae38d236f08c2a13fa318cd66e8460ede}\label{struct__Eina__Future__Scheduler_ae38d236f08c2a13fa318cd66e8460ede}} 
\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{struct__Eina__Future__Schedule__Entry}{Eina\+\_\+\+Future\+\_\+\+Schedule\+\_\+\+Entry}}$\ast$($\ast$ \+\_\+\+Eina\+\_\+\+Future\+\_\+\+Scheduler\+::schedule) (\mbox{\hyperlink{struct__Eina__Future__Scheduler}{Eina\+\_\+\+Future\+\_\+\+Scheduler}} $\ast$scheduler, \mbox{\hyperlink{group__Eina__Promise_gac685b488df7948131b6405451d0b4fb5}{Eina\+\_\+\+Future\+\_\+\+Scheduler\+\_\+\+Cb}} cb, Eina\+\_\+\+Future $\ast$f, \mbox{\hyperlink{group__Eina__Value__Group_ga7985e8af6e956ae31b381bf829173cc0}{Eina\+\_\+\+Value}} value)}



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

i.\+e.\+: after {\ttfamily \mbox{\hyperlink{group__Eina__Promise_gad325942e86b9ce92c9f9c5aa062f0290}{eina\+\_\+promise\+\_\+resolve()}}} 

\begin{DoxyNote}{Note}
Must not be {\ttfamily N\+U\+LL} 
\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 \mbox{\hyperlink{group__Eina__Promise_gac685b488df7948131b6405451d0b4fb5}{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 N\+U\+LL} on error 
\end{DoxyReturn}
\mbox{\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($\ast$ \+\_\+\+Eina\+\_\+\+Future\+\_\+\+Scheduler\+::recall) (\mbox{\hyperlink{struct__Eina__Future__Schedule__Entry}{Eina\+\_\+\+Future\+\_\+\+Schedule\+\_\+\+Entry}} $\ast$entry)}



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

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

\begin{DoxyNote}{Note}
Must not be {\ttfamily N\+U\+LL}.
\end{DoxyNote}

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