Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: multi thread behavior

$
0
0
Also,

I have reconsidered my position over the static Sync class.

In coming version of Tweetinvi (0.9.8.0) you will have access to a static class TSync.
With this class you will be able to execute any operation asynchronously without having to worry about ThreadSafe credentials.

Code you will be able to use in coming release :
// simple thread task
TSync.ExecuteTaskAsync(() =>
{
    var user = User.GetLoggedUser();
    Console.WriteLine(user);
});

// using await to join thread task and get resultvar user = await TSync.ExecuteTaskAsync(() =>
{
    return User.GetLoggedUser();
});

Console.WriteLine(user);
Linvi

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>