\begin{sequencediagram}
  \newthread{t}{:Thread}

  \begin{call}{t}{function()}{t}{return value}
  \end{call}
\end{sequencediagram}
