Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asynchronous IO πŸ‘―β€β™€οΈπŸ‘―β€β™‚οΈ #39

Merged
merged 8 commits into from
Jan 29, 2019

Conversation

rauanmayemir
Copy link
Member

This PR adds a two threaded communication in brisk applications:

1). UI happens on the main thread
2). Logic happens on the background thread

brisk-async

So far, this only sleeps for 1 second before changing state, but we need to add some examples of HTTP requests. This also closes #36 and gives a way to implement #33.

Huge thanks to @aantron for helping us understand how Lwt works internally and making this possible.

@rauanmayemir rauanmayemir changed the title [WIP] Brisk Async capabilities [WIP] Brisk Async capabilities πŸ‘―β€β™€οΈπŸ‘―β€β™‚οΈ Jan 27, 2019
@wokalski wokalski changed the title [WIP] Brisk Async capabilities πŸ‘―β€β™€οΈπŸ‘―β€β™‚οΈ Brisk Async capabilities πŸ‘―β€β™€οΈπŸ‘―β€β™‚οΈ Jan 27, 2019
@wokalski wokalski changed the title Brisk Async capabilities πŸ‘―β€β™€οΈπŸ‘―β€β™‚οΈ Asynchronous IO πŸ‘―β€β™€οΈπŸ‘―β€β™‚οΈ Jan 28, 2019
Copy link
Member

@wokalski wokalski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some notes πŸ‘. In general, good job πŸ˜„

renderer-macos/lib/Brisk.re Outdated Show resolved Hide resolved
renderer-macos/lib/Brisk.re Show resolved Hide resolved
renderer-macos/lib/Brisk.re Outdated Show resolved Hide resolved
renderer-macos/lib/Brisk.re Outdated Show resolved Hide resolved
renderer-macos/lib/bindings/GCD.re Outdated Show resolved Hide resolved
renderer-macos/lib/stubs/BriskApplicationDelegate.c Outdated Show resolved Hide resolved
renderer-macos/lib/stubs/BriskWindowDelegate.c Outdated Show resolved Hide resolved
renderer-macos/lib/stubs/GCD.c Outdated Show resolved Hide resolved
tester-macos/bin/app.re Show resolved Hide resolved
renderer-macos/lib/stubs/BriskCocoa.c Outdated Show resolved Hide resolved
renderer-macos/lib/stubs/GCD.c Outdated Show resolved Hide resolved
tester-macos/bin/app.re Show resolved Hide resolved
@wokalski
Copy link
Member

There's a crash but I logged it separately in #44.

@wokalski wokalski merged commit b0b92e0 into master Jan 29, 2019
@wokalski wokalski deleted the feature/async branch January 29, 2019 12:28
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.

State changes don't trigger flush
2 participants