84b2f10
Branches > main > 84b2f10 > files
Document start-server!
Commit: 84b2f1097286c51f01a13f05cefb9a2e66100ddb
Parent: 869040e
1 changed file:
src/net/bowmap/minecraft_server.clj view file
@@ -75,7 +75,9 @@ ; TODO run all of this through a var so it's reloadable, and clearly so ; TODO this is networking, and so should be in net.bowmap.server.network (defn start-server!- "Starts the Minecraft server at the specified port. Returns a promise that will deliver when the server closes."+ "Starts the Minecraft server at the specified port.+ Returns a promise that will deliver when the server closes.+ Delivering the promise will also close the server." [{:keys! [port]}] (let [clients (server/start-tcp-server! {:port port}) shutdown (closable-promise clients)]