8000 race condition showing notifications with `GtNotificationJob` · Issue #4502 · feenkcom/gtoolkit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
race condition showing notifications with GtNotificationJob #4502
Closed
@j-brant

Description

@j-brant

If you use a GtNotificationJob and use the GtNotificationEvent>>#showNotifications method to automatically show the notification when the job starts, you can sometimes get an error when the notification dropdown is shown or hidden:

Image

I received this from running this code a few times:

[ (1 to: 20)
	collect: [ :i | 
		| job notification |
		job := (GtJob
				block: [ :job1 | 
					job1 label: 'Testing'.
					job1 max: 10.
					1
						to: 10
						do: [ :j | 
							10000 atRandom factorial.
							job1 value: j ] ]) announcer: Announcer new.
		notification := GtNotificationJob new.
		notification summaryClass: GtCompilationNotificationSummary.
		notification job: job.
		notification registerNotifications.
		notification showNotifications.
		notification hideNotificationsOnRemoval.
		[ job run ] forkAt: Processor activePriority - 1 ] ] asAsyncPromise

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0