Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
03badf8
commit 0e43297
Showing
3 changed files
with
15 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0e43297
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
is not a direct replacement of .Use instead.
- Why you use instead of ?
The latter can deal with multiple arguments.
You don’t need , as you can write .
- ‘fastthread’ is bundled with 1.8.6, and its gem has been left with some bugs.
returns true value if the extension library verion of ‘thread’.
- Some indentation seem broken :)
0e43297
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the comments nobu.
I use write instead of print because print will append a newline to the output.
I am aware that it is claimed that fastthread’s functionality is bundled starting from a certain patchlevel of 1.8.6. But I once ran into a threading bug in 1.8.6, which seemed to be solved by loading fastthread.
As for the indentation, Github doesn’t properly display tabs.