Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple class to start separate thread/process #514

Open
cliffckerr opened this issue Aug 7, 2023 · 0 comments
Open

Add simple class to start separate thread/process #514

cliffckerr opened this issue Aug 7, 2023 · 0 comments
Labels
enhancement New feature lowpriority Low priority task

Comments

@cliffckerr
Copy link
Member

import sciris as sc

def my_server(time=3600):
    sc.timedsleep(time)

T = sc.thread() # and/or sc.process()
T.run(my_server, time=1800)
sc.timedsleep(10)
T.status()
T.kill()
@cliffckerr cliffckerr added the enhancement New feature label Aug 7, 2023
@cliffckerr cliffckerr added the lowpriority Low priority task label Nov 1, 2023
@cliffckerr cliffckerr added this to the Release 3.1.6 milestone Mar 21, 2024
@cliffckerr cliffckerr removed this from the Release 3.1.6 milestone Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature lowpriority Low priority task
Projects
None yet
Development

No branches or pull requests

1 participant