I'm using the lazy load snippet posted by DPP (http://
groups.google.com/group/liftweb/msg/be7d80992904774e) and did a slight
modification to it to allow for parallel execution. In
AsyncRenderComet I replaced ActorPing with LAScheduler like this:
override def lowPriority : PartialFunction[Any, Unit] = {
// farm the request off to another thread
case Ready(js) =>
// ActorPing.schedule(() => this ! Render(js()), 0 seconds)
// NEW CODE HERE
LAScheduler.execute(() => this ! Render(js()))
// render it
case Render(js) =>
partialUpdate(js)
}
Is this safe or may I run into issues?