Replacing in memory process from GtSubProcess instead of TaskIt futures.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2024-08-02 14:19:00 -05:00
parent af81f92399
commit 7b86b2cfeb

View File

@ -139,17 +139,7 @@ BreaPage >> metadata: aDictionary [
{ #category : #'as yet unclassified' }
BreaPage >> populateBodyAs: key [
| allActions result semaphore |
allActions := TKTFuture all: {
[ self bodyContentsAsHTML ] future.
}.
semaphore := Semaphore new.
allActions onSuccessDo: [ :values |
result := values last.
semaphore signal ].
semaphore wait.
self templateData at: key put: result contents.
self templateData at: key put: self bodyContentsAsHTML.
^ self.
]
@ -167,7 +157,7 @@ BreaPage >> populateMetadata [
ifNil: [ metadataTemp := self contentsFile metadata].
metadataTemp keysAndValuesDo: [ :key :value |
self templateData at: key put: value ].
^ templateData
^ self templateData
]
{ #category : #operation }