Skip to content

Any way to stop streaming subscription early? #1108

Answered by ecederstrand
vectar7 asked this question in Q&A
Discussion options

You must be logged in to vote

I don't know how this sort of thing works in Windows. On Unix you would send the service process a signal, SIGHUP for example, and in the code for the service you register a signal handler that exits the process.

You could also run your for loop in a thread and have the outer process detect when to exit.

Anyway, this is a general problem and not something specific to exchangelib.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@vectar7
Comment options

Answer selected by vectar7
Comment options

You must be logged in to vote
2 replies
@kostrykin
Comment options

@ecederstrand
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants