Skip to content

Commit

Permalink
docs: fix example GIL blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinceEGY committed Jan 10, 2025
1 parent 3533da9 commit e2be840
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ if success: # if the headset is connected successfully
session = Session(headset, config=sess_config)

while headset.signal_quality != 100:
pass # wait for the user to wear the headset properly
time.sleep(1) # wait for the user to wear the headset properly

session.start() # Start recording data

while session.is_active:
pass # wait for the session to finish
time.sleep(1) # wait for the session to finish

session.save() # save the recorded data to disk
```
Expand Down Expand Up @@ -56,7 +56,7 @@ if sucess:
subscription = headset.on_data(meditation_handler)

while some_condition:
pass
time.sleep(1)

subscription.detach() # Unsubscribe from the event
```
Expand Down

0 comments on commit e2be840

Please sign in to comment.