Click here to Skip to main content
13,002,628 members (57,779 online)
Click here to Skip to main content

Stats

34.2K views
793 downloads
137 bookmarked
Posted 22 Nov 2011

Declarative multithreading

, 13 Mar 2012
An introduction and proof of concept code for the idea of declarative multi threading in C#.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ThreadBound
{
    /// <summary>
    /// This interface is returned by asynchronous method calls that allow cancelation. The cancel method can be called
    /// at any time. If the async method call is still wating for being processed it will be marked as canceld and skiped.
    /// If the call is already executing the ThreadBoundObject.WasCanceled() method will return true.
    /// </summary>
    public interface IAsyncCallState
    {
        /// <summary>
        /// Cancels this asynchronous method call.
        /// </summary>
        void Cancel();
        //TODO: void Join();
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Common Development and Distribution License (CDDL)

Share

About the Author

gossd
Systems Engineer
Germany Germany
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170626.1 | Last Updated 13 Mar 2012
Article Copyright 2011 by gossd
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid