Title:
Add closure support to blocking operations to alow them to be non-blocking operations.
| View in TrackerStatus/Resolution/Reason: To Fix//
Reporter/Name(from Bugbase): Luis Majano / Luis Majano (Luis Majano)
Created: 10/10/2013
Components: Language
Versions: 10.0
Failure Type: Enhancement Request
Found In Build/Fixed In Build: Final /
Priority/Frequency: Trivial / Unknown
Locale/System: English / Platforms All
Vote Count: 4
If we can compare to other languages in this age, we must provide some type of non-blocking IO operations natively into the language. I propose adding closure callback support to the following functions/operations so they can be processed natively in the background (non-blocking) and then call back when done.
FileRead
FileWrite
cfquery
http
cffeed/feed
cfmail/mail
storedproc
ftp
etc
Basically any operation that can block a network or local resource. Imagine doing this:
fileRead( file, function(contents){
process file here in the background once it is read.
});
new http( url="xxx", method="post", results=function(content){ process here the results })
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3648785
External Customer Info:
External Company:
External Customer Name: LuisMajano
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: