Looking for code to implement this simple asynchronous example -


i'm looking simple example of asynchronous code ( preferable in vb .net ) this:

main()  async sub1()  async sub2()  await sub1()  print "end" end  sub1()  n=1 1000   { }  next end sub  sub2()  if n=500 in sub1() print "hello" end sub 

an alternative be:

main()  async sub1()  async sub2()  await sub1()  print "end" end  sub1()  n=1 1000   if n=500 send signal   { }  next end sub  sub2()  if signal received print "hello" end sub 


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -