Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Throttle Example (Send two requests every two seconds)

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 1.12 sec, absolute running time: 7.06 sec, cpu time: 0 sec, memory peak: 3 Mb, absolute service time: 8.31 sec 
edit mode |  history  | discussion
Error(s):
Size of Queue = 10
Time : 1416636023193
Fetched value :1
Fetched value :2
Time Left = 2000
Fetching next set !!
Time : 1416636025193
Fetched value :3
Fetched value :4
Time Left = 2000
Fetching next set !!
Time : 1416636027193
Fetched value :5
Fetched value :6
Time Left = 2000
Fetching next set !!
Time : 1416636029194
Fetched value :7
Fetched value :8
Time Left = 1999
Fetching next set !!
Time : 1416636030194
Fetched value :9
Fetched value :10
Done with fetching all values !!