Type/to search
Built-in Functions
Global
Log
Market
Trade
Account
Futures
Exchange
IO
Network
Storage
Threads
exchange.Go
EventLoop
ctx.subscribe
ctx.poll
ctx.order
ctx.cancel
ctx.orderAsync
ctx.cancelAsync
Subscription
threading
Thread
ThreadLock
ThreadEvent
ThreadCondition
ThreadDict
Server
Server.addr
Server.close
Server.stop
Server.join
Server.pending
TA
Talib
OS
Structures
Built-in Variables and Constants
Conventions
Exchanges

Returned by threading.Serve(); represents a running service. It can be passed to other threads as an argument of the thread function, where the service can be inspected or closed.

In this sectionRead the whole section

NameDescription
Server.addrReturns the address and port the service actually listens on.
Server.closeStops accepting new connections; handlers already running finish normally (graceful shutdown).
Server.stopCloses the service (as close()) and then terminates every handler thread that is still running.
Server.joinWaits until the service is closed and no handler is running.
Server.pendingReturns the number of handlers currently running, i.e.