<div dir="ltr"><div>i am currently writing a facebook application in seaside. one of the most important pieces of data i need to retrieve is the user&#39;s friends list. unfortunately, this could end up being a substantial amount of data. fortunately, the load time for this data is not horrible, just a few seconds.</div><div>i am making the assumption that while interacting with my app, the user will not be adding new friends mid stream, and that during each session, the friends list will be static.</div><div><br></div><div>what i would like to do is make this happen completely behind the scenes, so that when the user logs in, the request for the friends list is fired off RIGHT AFTER the page is rendered.</div><div>i read the section on concurrency in &#39;deep into pharo&#39;, and while incomplete, it makes enough sense for me to try it.</div><div>my question is.. i am going to do something like:</div><div><br></div><div>[currentUser updateData] fork</div><div><br></div><div>1. if i want to do that RIGHT AFTER rendering, can i put that at the end of renderContentOn: html ?</div><div>2. when i want to work with the data, how would i know if it was done updating? i was thinking of using a semaphore.. but how would i let the next process know to keep waiting until the process was done? i would want to do something like: getFriendsList (but make sure process that populates it is done before running the request).</div><div><br></div><div>thanks!</div></div>