Dictionary entry
coro
Last updated
Meaning
nouncountableinformalcomputing
A shortened way of writing 'coroutine', a routine that can pause and resume without stopping the whole program.
Grammar: Countable: you can say 'a coro' or 'coros'. It is an informal short form, so in formal writing use 'coroutine'.
Patterns
- a coro
- coros
The library uses a coro to handle thousands of network requests at once.
If you write a coro, remember to await it before closing the program.
He explained how a coro can pause at an await point and let other code run.
Word forms
| plural | coros |
|---|
Common combinations
- launch a coro
- The server can launch a coro for each incoming connection.
- await a coro
- You must await a coro if you need its result before moving on.
- a coro pauses
- A coro pauses at an await expression and resumes when the data is ready.
- coro-based
- They rewrote the old callbacks into a cleaner coro-based design.
Synonyms and how they differ
- coroutine
- The full, standard term; use it in documentation and formal writing, while 'coro' is a casual short form.
- thread
- A thread also runs code concurrently, but it is managed by the operating system and is heavier than a coro.
Word family
- coroutine noun
- The full form of 'coro'; a routine that can be paused and resumed.
Commonly confused: coro or choreo? coro or Coro?
coro vs choreo
Informal short form of 'choreography', not of 'coroutine'; the spelling and meaning are different.
coro vs Coro
With a capital letter this usually refers to a city in Venezuela, not to coroutines.
Practice
In a programming chat, someone writes: 'This coro will keep running until you cancel it.' What does 'coro' mean here?
Choose one answer.
'Coro' is an informal short form of 'coroutine', a routine that can pause and resume; in a programming context that is the only fitting meaning. 'Choreography' is shortened to 'choreo', not 'coro', and 'chorus' and 'core' are unrelated words.
Make it your own
Write a sentence using “coro”, then check it and compare it with the examples above.