This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.springframework.stereotype.Component; | |
import reactor.core.publisher.Mono; | |
import reactor.core.scheduler.Schedulers; | |
import reactor.retry.Retry; | |
import reactor.retry.RetryExhaustedException; | |
import java.time.Duration; | |
import java.util.function.Supplier; | |
@Component |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
var sleep = require('sleep'); | |
var timeout = 100000; //sleep 100 seconds | |
http.createServer(function (req, res) { | |
setTimeout((function() { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end("Hello I am awake"); | |
}), timeout); | |
}).listen(8080); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
var sleep = require('sleep'); | |
var timeout = 100000; //sleep 100 seconds | |
http.createServer(function (req, res) { | |
setTimeout((function() { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end("Hello I am awake"); | |
}), timeout); | |
}).listen(8080); |