View source code Display the source code in std/experimental/testing/io.d from which this page was generated on github. Improve this page Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone. Page wiki View or edit the community-maintained wiki page associated with this page.

Class std.experimental.testing.io.WriterThread

Thread to output to stdout

Inherits from

Methods

Name Description
get Returns a reference to the only instance of this class.
join Waits for the writer thread to terminate.
start Creates the singleton instance and waits until it's ready.
write Writes the args in a thread-safe manner.
writeln Writes the args in a thread-safe manner and appends a newline.
writelnGreen Writes the args in a thread-safe manner in green (POSIX only). and appends a newline.
writelnRed Writes the args in a thread-safe manner in red (POSIX only) and appends a newline.
writeRed Writes the args in a thread-safe manner in red (POSIX only). and appends a newline.
writeYellow Writes the args in a thread-safe manner in yellow (POSIX only). and appends a newline.
factory Create instance of class specified by the fully qualified name classname. The class must either have no constructors or have a default constructor.
opCmp Compare with another Object obj.
opEquals Returns !=0 if this object does have the same contents as obj.
toHash Compute hash function for Object.
toString Convert Object to a human readable string.

Authors

License

Comments