@@ -27,7 +27,7 @@ def run(
2727 server_config : Optional [Any ] = None ,
2828 run_kwargs : Optional [Dict [str , Any ]] = None ,
2929 app : Optional [Any ] = None ,
30- daemon : bool = False ,
30+ threaded : bool = False ,
3131) -> Server [_App ]:
3232 """A utility for quickly running a render server with minimal boilerplate
3333
@@ -45,15 +45,15 @@ def run(
4545 run_kwargs:
4646 Keyword arguments passed to the :meth:`~idom.server.proto.Server.run`
4747 or :meth:`~idom.server.proto.Server.run_in_thread` methods of the server
48- depending on whether ``daemon `` is set or not.
48+ depending on whether ``threaded `` is set or not.
4949 app:
5050 Register the server to an existing application and run that.
51- daemon :
51+ threaded :
5252 Whether the server should be run in a daemon thread.
5353
5454 Returns:
5555 The server instance. This isn't really useful unless the server is spawned
56- as a daemon . Otherwise this function blocks until the server has stopped.
56+ as a threaded . Otherwise this function blocks until the server has stopped.
5757 """
5858 if server_type is None :
5959 server_type = find_builtin_server_type ("PerClientStateServer" )
@@ -63,7 +63,7 @@ def run(
6363 server = server_type (component , server_config , app )
6464 logger .info (f"Using { type (server ).__name__ } " )
6565
66- run_server = server .run if not daemon else server .run_in_thread
66+ run_server = server .run if not threaded else server .run_in_thread
6767 run_server (host , port , ** (run_kwargs or {})) # type: ignore
6868 server .wait_until_started ()
6969
@@ -85,7 +85,7 @@ def multiview_server(
8585 the fly.
8686
8787 Parameters:
88- server: The server type to start up as a daemon
88+ server: The server type to start up in a threaded
8989 host: The server hostname
9090 port: The server port number
9191 server_config: Value passed to :meth:`~idom.server.proto.ServerFactory`
@@ -105,7 +105,7 @@ def multiview_server(
105105 port ,
106106 server_config = server_config ,
107107 run_kwargs = run_kwargs ,
108- daemon = True ,
108+ threaded = True ,
109109 app = app ,
110110 )
111111
@@ -128,7 +128,7 @@ def hotswap_server(
128128 the fly.
129129
130130 Parameters:
131- server: The server type to start up as a daemon
131+ server: The server type to start up in a threaded
132132 host: The server hostname
133133 port: The server port number
134134 server_config: Value passed to :meth:`~idom.server.proto.ServerFactory`
@@ -149,7 +149,7 @@ def hotswap_server(
149149 port ,
150150 server_config = server_config ,
151151 run_kwargs = run_kwargs ,
152- daemon = True ,
152+ threaded = True ,
153153 app = app ,
154154 )
155155
0 commit comments