Skip to content

Commit b86715d

Browse files
committed
update example in readme
1 parent 54a737b commit b86715d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ void main() async {
3636

3737
final address = InternetAddress.anyIPv4;
3838
final port = App.getEnv('PORT', 8080);
39-
await app.serve(ShelfServer(address, port));
39+
await App.serve(app, ShelfServer(address, port), threads: 3);
4040
print("server started at ${address.address}:$port");
41+
print('press any key to exit.');
42+
stdin.readByteSync();
4143
}
4244
```
4345

0 commit comments

Comments
 (0)