How to start a callback on another thread ?
1 post
• Page 1 of 1
How to start a callback on another thread ?
It is possible to start an event on another thread while using ⎕WS:
While using .Net, the following will not work:
One way in .Net would be to call a dummy function first that will call the event on another thread. Is there another way ?
⎕WS 'Event' 'Select' 'DoIt&'
While using .Net, the following will not work:
⎕USING ← 'System.Timers,System.dll'
tm1 ← ⎕NEW Timer(1000) ⍝ 1 second
tm1.onElapsed ← (⎕OR 'DoIt&')
tm1.Start
One way in .Net would be to call a dummy function first that will call the event on another thread. Is there another way ?
-
PGilbert - Posts: 440
- Joined: Sun Dec 13, 2009 8:46 pm
- Location: Montréal, Québec, Canada
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group