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

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -