Is "kill" synchronous or asynchronous function?
Printable View
Is "kill" synchronous or asynchronous function?
As with all built in functions it's synchronous, it doesn't return until it has done its job or failed to do so (however technically speaking Kill is a statement and not a function).
Thank you Joacim.
If I understood you well, my app will not run nothing more until "kill" ends its "processing" (couldn't find a better word). Is that right?
By what i saw in MSDN, the kill function/statement doesn't return any value, so I can I know if the file was deleted successfully?
You have understood correctly. The Killl statement will raise an error if it fails. You must trap this error.
Ok, thank you very much for your quick reply.