@@ -27,7 +27,7 @@ def run(
27
27
server_config : Optional [Any ] = None ,
28
28
run_kwargs : Optional [Dict [str , Any ]] = None ,
29
29
app : Optional [Any ] = None ,
30
- daemon : bool = False ,
30
+ threaded : bool = False ,
31
31
) -> Server [_App ]:
32
32
"""A utility for quickly running a render server with minimal boilerplate
33
33
@@ -45,15 +45,15 @@ def run(
45
45
run_kwargs:
46
46
Keyword arguments passed to the :meth:`~idom.server.proto.Server.run`
47
47
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.
49
49
app:
50
50
Register the server to an existing application and run that.
51
- daemon :
51
+ threaded :
52
52
Whether the server should be run in a daemon thread.
53
53
54
54
Returns:
55
55
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.
57
57
"""
58
58
if server_type is None :
59
59
server_type = find_builtin_server_type ("PerClientStateServer" )
@@ -63,7 +63,7 @@ def run(
63
63
server = server_type (component , server_config , app )
64
64
logger .info (f"Using { type (server ).__name__ } " )
65
65
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
67
67
run_server (host , port , ** (run_kwargs or {})) # type: ignore
68
68
server .wait_until_started ()
69
69
@@ -85,7 +85,7 @@ def multiview_server(
85
85
the fly.
86
86
87
87
Parameters:
88
- server: The server type to start up as a daemon
88
+ server: The server type to start up in a threaded
89
89
host: The server hostname
90
90
port: The server port number
91
91
server_config: Value passed to :meth:`~idom.server.proto.ServerFactory`
@@ -105,7 +105,7 @@ def multiview_server(
105
105
port ,
106
106
server_config = server_config ,
107
107
run_kwargs = run_kwargs ,
108
- daemon = True ,
108
+ threaded = True ,
109
109
app = app ,
110
110
)
111
111
@@ -128,7 +128,7 @@ def hotswap_server(
128
128
the fly.
129
129
130
130
Parameters:
131
- server: The server type to start up as a daemon
131
+ server: The server type to start up in a threaded
132
132
host: The server hostname
133
133
port: The server port number
134
134
server_config: Value passed to :meth:`~idom.server.proto.ServerFactory`
@@ -149,7 +149,7 @@ def hotswap_server(
149
149
port ,
150
150
server_config = server_config ,
151
151
run_kwargs = run_kwargs ,
152
- daemon = True ,
152
+ threaded = True ,
153
153
app = app ,
154
154
)
155
155
0 commit comments