MCPcopy Create free account
hub / github.com/OpenDriveLab/DriveAdapter / threaded

Function threaded

leaderboard/leaderboard/envs/sensor_interface.py:16–23  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

14
15
16def threaded(fn):
17 def wrapper(*args, **kwargs):
18 thread = Thread(target=fn, args=args, kwargs=kwargs)
19 thread.setDaemon(True)
20 thread.start()
21
22 return thread
23 return wrapper
24
25
26class SensorConfigurationInvalid(Exception):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected