Skip to content

Rename ForegroundWorker → JNISafety. - #1552

Merged
player-03 merged 1 commit into
openfl:developfrom
player-03:JNI_safety
Jun 19, 2022
Merged

player-03 merged 1 commit into
openfl:developfrom
player-03:JNI_safety

Conversation

@player-03

Copy link
Copy Markdown
Contributor

This change places the focus on the one known use case, while clearing up potential confusion caused by similar-sounding classes that function totally differently.

I'm afraid #1534 may have been a bit hasty. In retrospect, it seems no one has a serious use case for it other than the JNI one. People were vaguely confused about the name, but didn't care much because they weren't planning to use the class.

But worse than that, I realized that if people did start using it for non-JNI-related things, it would be during a BackgroundWorker or ThreadPool function, and that's bad. We already provide specific ways to get back to the main thread from those functions, and we want people to use them. Web workers (once #1518 gets accepted) will require it.

This change places the focus on the one known use case, while clearing
up potential confusion caused by similar-sounding classes that function
totally differently.
@player-03
player-03 merged commit b542d62 into openfl:develop Jun 19, 2022
@player-03
player-03 deleted the JNI_safety branch June 19, 2022 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant