ruby - Sinatra design pattern -


i'm trying implement sintra design pattern, can't wrap head around current implementation.

take code example.

get "/path1"   # stuff end  "/path2"   # stuff end 

how come first call get doesn't block main thread?

i'm trying implement similar.

work("some data 1") work("some data 2") work("some data 3") 

here, want add "some data n" kind of queue, when there isn't more work calls want start processing data. not want call app.start in end of file`.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -