4115884

Branches > refactor/use-spec-1 > 4115884 > files / Glossary.md

add start-server! docstring

Grahp, 2026-07-08

Commit: 4115884b0a94a230a6660a9d3162df3c19be7b19
Parent: 7e7b32d

1 changed file:

src/net/bowmap/minecraft_server.clj modified (view file)

@@ -62,7 +62,9 @@  ; TODO make reloadable, if port is already running, just swap it out? ; TODO this is networking, and so should be in net.bowmap.server.network-(defn start-server! [{:keys! [port]}]+(defn start-server!+  "Starts the Minecraft server at the specified port. Returns a promise that will deliver when the server closes."+  [{:keys! [port]}]   (let [{::server/keys! [client-chan shutdown]} (server/start-tcp-server! {:port port})]     ; Loop over the instance?     (io-thread