1coroutine::auto(n) Coroutine utilities coroutine::auto(n)
2
3
4
5______________________________________________________________________________
6
8 coroutine::auto - Automatic event and IO coroutine awareness
9
11 package require Tcl 8.6
12
13 package require coroutine::auto 1.1.3
14
15 package require coroutine 1.1
16
17______________________________________________________________________________
18
20 The coroutine::auto package provides no commands or other directly vis‐
21 ible functionality. Built on top of the package coroutine, it inter‐
22 cepts various builtin commands of the Tcl core to make any code using
23 them coroutine-oblivious, i.e. able to run inside and outside of a
24 coroutine without changes.
25
26 The commands so affected by this package are
27
28 after
29
30 exit
31
32 gets
33
34 global
35
36 read
37
38 update
39
40 vwait
41
43 This document, and the package it describes, will undoubtedly contain
44 bugs and other problems. Please report such in the category coroutine
45 of the Tcllib Trackers [http://core.tcl.tk/tcllib/reportlist]. Please
46 also report any ideas for enhancements you may have for either package
47 and/or documentation.
48
49 When proposing code changes, please provide unified diffs, i.e the out‐
50 put of diff -u.
51
52 Note further that attachments are strongly preferred over inlined
53 patches. Attachments can be made by going to the Edit form of the
54 ticket immediately after its creation, and then using the left-most
55 button in the secondary navigation bar.
56
58 after, channel, coroutine, events, exit, gets, global, green threads,
59 read, threads, update, vwait
60
62 Coroutine
63
65 Copyright (c) 2010-2014 Andreas Kupries <andreas_kupries@users.sourceforge.net>
66
67
68
69
70tcllib 1.1.3 coroutine::auto(n)