@@ -389,10 +389,10 @@ separately.
389389@defproc[(page-change-evt [page page?]) (evt/c void?)]{
390390 Returns a synchronizable event that becomes ready for synchronization
391391 when the page contents have changed (for example, when the user
392- navigates to another page). The synchronization result of a page
393- change event is @racket[void]. Once a page change event has
394- synchronized, a new event must be created in order to observe further
395- page changes.
392+ navigates to another page). The synchronization result of a
393+ @deftech{page change event} is @racket[void]. Once a page change
394+ event has synchronized, a new event must be created in order to
395+ observe further page changes.
396396
397397 When selected for synchronization, a page change event spawns a
398398 background thread to poll the page for changes. The thread will run
@@ -412,6 +412,16 @@ separately.
412412 @history[#:added "1.5 " ]
413413}
414414
415+ @defproc[(call-with-page-change-evt [p page?] [proc (-> page-change-evt? any )]) any ]{
416+ Calls @racket[proc] with a @tech{page change event} for @racket[p],
417+ abandoning it when @racket[proc] returns or whenever control escapes
418+ the dynamic extent of the call. Whenever control re-enters the dynamic
419+ extent of a call to @racket[call-with-page-change-evt], a new page
420+ change event is created.
421+
422+ @history[#:added "1.6 " ]
423+ }
424+
415425@subsection[#:tag "reference/element " ]{Element}
416426
417427@deftech{Elements} represent individual elements on a specific page.
0 commit comments