[Newbies] Callback

Randal L. Schwartz merlyn at stonehenge.com
Thu Oct 9 14:05:31 UTC 2008


>>>>> "xyz" == xyz 42 <xyzz42 at gmail.com> writes:

xyz> Hello!  I want to create a callback that will call my method after,
xyz> say, 10 minutes.  How can I do it in squeak?

Open a Transcript and a workspace, and execute this in the Workspace:

  [(Delay forSeconds: 10) wait. Transcript show: 'done!'] fork.

Then go off and do something else for 10 seconds. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion


More information about the Beginners mailing list