asp.net mvc - How to implement "no wait" controller call for an API? -


i have set of mvc3 controller methods call javascript clients not require returning data. it's purely 1 way push of tiny data-set further processing. each controller call can take anywhere 100ms 1000ms queue transaction , no data/status returned client.

i want api call return client right away while processing happens in background.

any pointers appreciated.

public actionresult asyncaction() {     var mythread = new thread(threadfunction);     mythread.start();      return view("asyncview"); }  void threadfunction() {     .     .     //code api call etc...     .     . } 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -