Does main subroutine "wait" for a called sub to finish, or not?
Hi,
I'm working on code that involved streaming data into a Table through an API.
It's a lot of data that is being streamed, and at times it receives multiple records per second.
so speed is my concern.
here's my question:
when I call a subroutine, does the main code "wait" for the subroutine to finish its computations, or not?
for example:
Public Sub start()
..do stuff
..do stuff
' cal another sub
dosomethingelse()
..do more stuff
.. do more stuff
end sub
Public Sub dosomethingelse()
..do something
..do something
end sub
Does Sub Start() wait until Sub dosomethingelse is finished "do something"
before it continues "do more stuff" ??
if it does, is there a way that "do more stuff" can continue without having to wait for Sub dosomethingelse() ???
thanks.
I have a feeling this is a dumb question, but it is becoming very important to me.
Last edited by pthegr8; October 29th, 2014 at 05:43 PM..
|