[squeak-dev] The Inbox: ShoutCore-ct.87.mcz
commits at source.squeak.org
commits at source.squeak.org
Fri Oct 22 15:41:18 UTC 2021
A new version of ShoutCore was added to project The Inbox:
http://source.squeak.org/inbox/ShoutCore-ct.87.mcz
==================== Summary ====================
Name: ShoutCore-ct.87
Author: ct
Time: 22 October 2021, 5:41:17.022039 pm
UUID: 2ac8b39c-fc55-7d44-b51b-bc11028749f7
Ancestors: ShoutCore-ct.86
Fixes link to test.
=============== Diff against ShoutCore-ct.86 ===============
Item was changed:
----- Method: SHTextStyler>>styleInBackgroundProcess: (in category 'styling') -----
styleInBackgroundProcess: aText
| text newBackgroundProcess |
self discardBackgroundStyling.
stylingEnabled ifFalse: [ ^self ].
text := aText copy.
newBackgroundProcess := nil.
newBackgroundProcess := [ | sem |
self privateStyle: text.
sem := Semaphore new.
Project current addDeferredUIMessage: [
+ "The styling request might have been discarded in the meantime. Check that it is still relevant before publishing the result. See SHStylerBackgroundTest >> #testDiscardBackgroundStyling2."
- "The styling request might have been discarded in the meantime. Check that it is still relevant before publishing the result. See ShoutTest >> #testDiscardBackgroundStylingAffectsDeferredUIMessages."
newBackgroundProcess isTerminated ifFalse: [
view stylerStyledInBackground: text.
sem signal ] ].
sem wait. "Keep this process alive until the styling have been published do that #discardBackgroundStyling can also affect styling requests that are only pending for publication."
backgroundProcess := nil ] newProcess
priority: Processor userBackgroundPriority;
yourself.
backgroundProcess := newBackgroundProcess resume.!
More information about the Squeak-dev
mailing list
|