Using .NET 4.0's Task Parallel Library with IronRuby 1.1

Software Engineering 2236 views

Using .Net 4.0's Task Parallel Library with IronRuby 1.1:

require 'mscorlib'

include System::Threading
include System::Threading::Tasks

Parallel.For(0, 100, lambda { |a| puts a })