Re: [Ironruby-core] Asynchronous Delegates

2010-02-11 Thread Bassel Samman
Thanks guys. I ended up writing a wrapper that takes an action and runs it in an async delegate and that worked fine. You can obviously get much fancier, but an example would be along the lines of this: C# class: public class WrapInDelegate{ public delegate void DelegateWrapper();

Re: [Ironruby-core] Asynchronous Delegates

2010-02-11 Thread Ivan Porto Carrero
or take a look here: I think the threadpool code is the one you want but it's commented out right now http://github.com/casualjim/ironnails/blob/master/IronNails/vendor/iron_nails/lib/nails_engine.rb#L61 --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.

Re: [Ironruby-core] Asynchronous Delegates

2010-02-11 Thread Mark Rendle
Hi Bassel, Ruby provides its own support for asynchronous operations in its Thread class: Thread.new do puts "howdy!" end If you specifically need to run a .NET delegate asynchronously, you can call its invoke method within this structure: Thread.new do my_action.invoke end More info on Ru

[Ironruby-core] Asynchronous Delegates

2010-02-10 Thread Bassel Samman
Hello guys, I'd like to use asynchronous delegates, but it doesn't seem to work. The IronRuby website mentioned that I can do: __ >>> require 'System' => true >>> require 'System.Core, Version=3.5.0.0, Culture=neutral, >>> Pu