RE: deferred and macros
"Alexander Schremmer" <[email protected]> Tue, 21 Dec 2004 21:00:29 +0100
| Newsgroups | gmane.comp.web.wiki.moin.devel |
|---|---|
| Message-ID | <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAoJt1vBbz40CDAg5sGRmjl8KAAAAQAAAAixFTafQ690OCM9R9i41I4AEAAAAA@alexanderweb.de> |
William Waites wrote on Tuesday, December 21, 2004 6:12 PM CEST: >>> But it is difficult because right now the >>> MoinMoin architecture expects calls like this to be synchronous >> >> Between which events do you want your code to be asynchronous? > > Between the macro execution and the page rendering. The page rendering works instantly. So after you have returned the chunk of data, it will be written to the client. Instantly. Even in another thread if you use Twisted (according to Nir). (Or it will be cached statically). So you may want to handle such defers internally while having the problem of non-portability to non-Twisted environments. I do not see any other point or might misunderstand your problem :-) Kind regards, Alexander ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/