Lift allows you to execute multiple snippets in parallel during the rendering of a page. This allows you to fork off multiple long-running jobs (e.g., talking to an external ad server) and run them in parallel. All the jobs must complete before the final page render is sent back to the browser. The lift:parallel="true" attribute designates a snippet as parallel.
The Markup:
<div> Exec parallel: <lift:Parallel lift:parallel="true"/> </div>
The Scala Code:
object Parallel { def render = { <div>This snippet evaluated on { Thread.currentThread.getName() } </div> } }