Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 06:37

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



A look at async/await and its applications

Discussion on A look at async/await and its applications within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
A look at async/await and its applications

I'm pretty sure most programmers here are still stuck using the legacy async methods (Begin..., End...) instead of the new keywords, so here's a small overview of using them. You can quickly see how applicable they are to development and how useful it can be.

Emphasis on "small overview". It also becomes extremely apparent how much cleaner your code becomes using async/await rather than the legacy methods which forced you to write spaghetti-like code.
Attached Files
File Type: rar AsyncTesting.rar (51.3 KB, 63 views)
InfamousNoone is offline  
Old 08/04/2013, 14:51   #2


 
CptSky's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,443
Received Thanks: 1,175
Wasn't aware of it... It's really nice. But as I don't use .NET 4.5, I'll stick with the old spaghetti-code.
CptSky is offline  
Old 08/04/2013, 23:28   #3
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
Is there particularly a reason why? Mono supports async/await as well.
InfamousNoone is offline  
Old 08/05/2013, 10:50   #4


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Yeah async/await is pretty fancy, you tend to use it quite a lot when writing Metro style apps so that the UI stays fluid while loading data sets etc, I mean you could do that anyway with Begin/End but now the code flows better.
Korvacs is offline  
Old 08/06/2013, 14:04   #5


 
CptSky's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,443
Received Thanks: 1,175
Quote:
Originally Posted by InfamousNoone View Post
Is there particularly a reason why? Mono supports async/await as well.
I still use Windows XP in a VM as a Windows dev. platform. I'll stick with VS 2010 for a moment (anyway, I just don't care to target Windows 8, I prefer to keep the support of Windows XP).

And for Mono. It's a great framework, but as Microsoft already ships .NET, I don't see the point to depend on something similar, but external. It's already hard enough to have users having the latest .NET version...
On Mac OS X, I find a bit sad that Mono doesn't generate real Mach-O files instead of PE. At least, they should provide an app. wrapper like it is the case with Java apps. So, I don't really use C# outside of MS world.
CptSky is offline  
Old 08/08/2013, 06:46   #6
 
elite*gold: 0
Join Date: Feb 2006
Posts: 550
Received Thanks: 81
You should teach people how to properly balance their workload, writing code that can execute in parallel using ForkJoin methods.
ChingChong23 is offline  
Old 08/08/2013, 10:55   #7
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
Honestly, I have a pretty good idea about how to go about it but I only started playing recently with async to procrastinate exams. I have another one today (and because it multiple papers scattered around my room with proofs!), but soon I'll be done and I'll be sure to post back with new findings when I have time.
InfamousNoone is offline  
Reply


Similar Threads Similar Threads
[Release]Async Sockets (No packet-splitter)
09/20/2012 - CO2 Programming - 16 Replies
So after seeing this thread: http://www.elitepvpers.com/forum/co2-pserver-discu ssions-questions/2129268-problem-packet-splitting. html I thought I'd make some socket server that could handle the packets without needing to split. Source: BasicClient.cs using System;
Re: † • Metin 2 Kalipso • † ~ Dangerous battles await you!
05/31/2012 - Metin2 PServer Advertising - 3 Replies
Metin2Kalipso Dedicated Server 24/7 Core i7-24 gb ddr3 3.0 disk 1 gb 2 tb band. Rates: 450% Exp Yang 750%
Async Socket Wrapper
11/11/2011 - CO2 Programming - 8 Replies
So I was bored and thought I would code a socket wrapper. It's a class library, but full project is available for download + an example use for a socket server. It contains both wrapper for server and client stuff, which means it can be used for either private servers as server-socket or for a proxy. WinAsync - This class contains all the events. public delegate void WinEvent(WinClient wClient); public delegate void WinBufferEvent(WinClient wClient, WinBuffer Buffer); ...
New Adventures Await! NAGC Sea3son Coming soon!
04/26/2010 - Grand Chase - 15 Replies
http://image.ntreev.net/gc/eventImages/2010/0420/t lwmstka/01.jpg



All times are GMT +1. The time now is 06:38.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.