File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -941,7 +941,7 @@ While the streaming I/O API is synchronous, the underlying implementation is ful
941
941
942
942
Consider the printed output from the following:
943
943
944
- ``` jldoctest
944
+ ```
945
945
julia> @sync for i in 1:3
946
946
Threads.@spawn write(stdout, string(i), " Foo ", " Bar ")
947
947
end
@@ -954,7 +954,7 @@ yields to other tasks while waiting for that part of the I/O to complete.
954
954
` print ` and ` println ` "lock" the stream during a call. Consequently changing ` write ` to ` println `
955
955
in the above example results in:
956
956
957
- ``` jldoctest
957
+ ```
958
958
julia> @sync for i in 1:3
959
959
Threads.@spawn println(stdout, string(i), " Foo ", " Bar ")
960
960
end
@@ -965,7 +965,7 @@ julia> @sync for i in 1:3
965
965
966
966
You can lock your writes with a ` ReentrantLock ` like this:
967
967
968
- ``` jldoctest
968
+ ```
969
969
julia> l = ReentrantLock();
970
970
971
971
julia> @sync for i in 1:3
You can’t perform that action at this time.
0 commit comments