mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-05 10:14:05 +00:00
fix missing imports
This commit is contained in:
@@ -165,6 +165,8 @@ Creates a buffered version of the specified `Chan` type.
|
||||
|
||||
Example:
|
||||
|
||||
import "core:sync/chan"
|
||||
|
||||
create_buffered_example :: proc() {
|
||||
c, err := chan.create_buffered(chan.Chan(int), 10, context.allocator)
|
||||
assert(err == .None)
|
||||
|
||||
@@ -17,6 +17,7 @@ Example:
|
||||
|
||||
import "core:sync/chan"
|
||||
import "core:fmt"
|
||||
import "core:thread"
|
||||
|
||||
// The consumer reads from the channel until it's closed.
|
||||
// Closing the channel acts as a signal to stop.
|
||||
|
||||
Reference in New Issue
Block a user