ZIm/crates/gpui/examples
Mikayla Maki 1aefa5178b
Move "async move" a few characters to the left in cx.spawn() (#26758)
This is the core change:
https://github.com/zed-industries/zed/pull/26758/files#diff-044302c0d57147af17e68a0009fee3e8dcdfb4f32c27a915e70cfa80e987f765R1052

TODO:
- [x] Use AsyncFn instead of Fn() -> Future in GPUI spawn methods
- [x] Implement it in the whole app
- [x] Implement it in the debugger 
- [x] Glance at the RPC crate, and see if those box future methods can
be switched over. Answer: It can't directly, as you can't make an
AsyncFn* into a trait object. There's ways around that, but they're all
more complex than just keeping the code as is.
- [ ] Fix platform specific code

Release Notes:

- N/A
2025-03-19 02:09:02 +00:00
..
image gpui: Maintain img aspect ratio when max_width is set (#25632) 2025-03-03 12:36:27 +01:00
svg gpui: Update asset paths for more examples (#24646) 2025-02-11 14:37:55 +00:00
animation.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
data_table.rs gpui: Rename rounded_md to rounded_sm (#26228) 2025-03-06 17:57:31 +00:00
gif_viewer.rs gpui: Update asset paths for more examples (#24646) 2025-02-11 14:37:55 +00:00
gradient.rs Revert "Revert recent anti-aliasing improvements (#24289)" and fix selection top right corner radius issue (#24342) 2025-02-06 11:03:23 +02:00
hello_world.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
image_loading.rs gpui: Rename rounded_sm to rounded_xs (#26221) 2025-03-06 16:08:19 +00:00
input.rs gpui: Fix Cut action in input example (#26203) 2025-03-06 10:02:52 -05:00
on_window_close_quit.rs Add last window closed setting (#25185) 2025-02-19 20:03:10 +00:00
opacity.rs Move "async move" a few characters to the left in cx.spawn() (#26758) 2025-03-19 02:09:02 +00:00
ownership_post.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
painting.rs Revert "Revert recent anti-aliasing improvements (#24289)" and fix selection top right corner radius issue (#24342) 2025-02-06 11:03:23 +02:00
pattern.rs gpui: Add interval in pattern (#26459) 2025-03-14 12:51:09 -07:00
set_menus.rs gpui: Update docs to reflect removal of View, ViewContext, WindowContext (#24008) 2025-01-31 11:40:42 -08:00
shadow.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
text_layout.rs gpui: Fix line_through, underline position when used text center or right (#24721) 2025-03-15 11:44:51 +02:00
text_wrapper.rs gpui: Add line_clamp to truncate text after a specified number of lines (#23058) 2025-01-29 22:14:24 +02:00
uniform_list.rs Remove more references to 'model' in GPUI APIs (#23693) 2025-01-27 04:00:27 +00:00
window.rs Move "async move" a few characters to the left in cx.spawn() (#26758) 2025-03-19 02:09:02 +00:00
window_positioning.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
window_shadow.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00