//! examples/task.rs #![deny(unsafe_code)] #![deny(warnings)] #![no_main] #![no_std] use panic_semihosting as _; #[rtic::app(device = lm3s6965, dispatchers = [SSI0, QEI0])] mod app { use cortex_m_semihosting::{debug, hprintln}; #[shared] struct Shared {} #[local] struct Local {} #[init] fn init(_: init::Context) -> (Shared, Local, init::Monotonics) { foo::spawn().unwrap(); (Shared {}, Local {}, init::Monotonics()) } #[task] fn foo(_: foo::Context) { hprintln!("foo - start").unwrap(); // spawns `bar` onto the task scheduler // `foo` and `bar` have the same priority so `bar` will not run until // after `foo` terminates bar::spawn().unwrap(); hprintln!("foo - middle").unwrap(); // spawns `baz` onto the task scheduler // `baz` has higher priority than `foo` so it immediately preempts `foo` baz::spawn().unwrap(); hprintln!("foo - end").unwrap(); } #[task] fn bar(_: bar::Context) { hprintln!("bar").unwrap(); debug::exit(debug::EXIT_SUCCESS); } #[task(priority = 2)] fn baz(_: baz::Context) { hprintln!("baz").unwrap(); } } -icons'>astro-icons Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/compiler/optimize/module-scripts.ts (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2021-04-02Add type declarations (#59)Gravatar Drew Powers 7-30/+46
2021-04-02Fix scoping issues (#58)Gravatar Drew Powers 6-108/+159
2021-04-02Add Tailwind support (#57)Gravatar Drew Powers 4-18/+96
2021-04-02Fix body from being scoped (#56)Gravatar Drew Powers 4-35/+44
2021-04-02Fix React import (#55)Gravatar Drew Powers 4-7/+7
2021-04-02Move devDeps to deps (#54)Gravatar Drew Powers 2-138/+6
2021-04-02Get CSS Modules working in Vue (#53)Gravatar Drew Powers 15-92/+251
2021-04-01Remove errant console.log (#51)Gravatar Matthew Phillips 1-1/+0
2021-04-01[ci] npm run formatGravatar matthewp 3-10/+8
2021-04-01Fix complex MDX parsing (#50)Gravatar Matthew Phillips 16-36/+136
2021-04-01Add prism and skeleton www page (#49)Gravatar Matthew Phillips 12-0/+4518
2021-04-01Annoying Lint PR #2 (#47)Gravatar Drew Powers 32-49/+156
2021-04-01Add runtime mode (#48)Gravatar Drew Powers 10-32/+48
2021-03-31Implements import.meta.request (#46)Gravatar Matthew Phillips 4-4/+37
2021-03-31Support for custom elements (#45)Gravatar Matthew Phillips 9-13/+144
2021-03-31Implement fallback capability (#44)Gravatar Matthew Phillips 14-28/+135
2021-03-31Extract Astro styles to external stylesheets (#43)Gravatar Drew Powers 54-165/+202
2021-03-30remove unused fnGravatar Fred K. Schott 1-13/+0
2021-03-30[ci] npm run formatGravatar matthewp 1-1/+1
2021-03-30Add minification (#42)Gravatar Matthew Phillips 3-1/+101
2021-03-30simplify svg animation, slow it downGravatar Fred K. Schott 1-54/+13
2021-03-30[ci] npm run formatGravatar matthewp 1-2/+2
2021-03-30Resolve component URLs during compilation (#40)Gravatar Matthew Phillips 6-16/+28
2021-03-30Fix nested parens bug (#39)Gravatar Drew Powers 4-5/+12
2021-03-30Convert CSS Modules to scoped styles (#38)Gravatar Drew Powers 9-84/+238
2021-03-30[ci] npm run formatGravatar matthewp 9-29/+24
2021-03-30Add support for doctype (#37)Gravatar Matthew Phillips 22-28/+162
2021-03-30[ci] npm run formatGravatar matthewp 4-41/+43
2021-03-30Bundling! 🤘 (#36)Gravatar Matthew Phillips 12-48/+373
2021-03-29revert bad snowpack example changesGravatar Fred K. Schott 1-8/+146
2021-03-29update landing pageGravatar Fred K. Schott 2-2/+3
2021-03-29update site titleGravatar Fred K. Schott 1-1/+1
2021-03-29clean up landing pageGravatar Fred K. Schott 4-224/+120
2021-03-29add example www siteGravatar Fred K. Schott 10-0/+5088
2021-03-26New hydration methods (#29)Gravatar Nate Moore 10-144/+219