hotReload function
Implementation
void hotReload(Future<HttpServer?> Function() createServer) {
HotReload(
serverFactory: () async {
try {
return await createServer();
} catch (e) {
// ignore: avoid_print
print('Failed to create server\n$e');
}
return null;
},
).attach().ignore();
}