C# Parralelism Remember this Crap

I’m posting this here so that I can NEVER FORGET:

(4:33:35 PM) Peter Rosconi: Holyyyyyy shit
(4:33:43 PM) Peter Rosconi: C# parralelism is the shit
(4:34:31 PM) Graeme Hefner: Explain
(4:34:43 PM) Peter Rosconi: List actions = new List();
actions.Add(() => LoadIdentificationTexts());
actions.Add(() => LoadAssociations());
actions.AsParallel().ForAll(a => a.Invoke());
(4:34:57 PM) Graeme Hefner: …wait, seriously, it just runs them all?
(4:35:00 PM) Graeme Hefner: In parallel?
(4:35:03 PM) Peter Rosconi: Yup
(4:35:09 PM) Graeme Hefner: That is the most badass goddamn thing I have ever seen.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s