Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
iowatcher: add deprecation warning
  • Loading branch information
bnoordhuis committed Jun 21, 2012
1 parent 8708bb0 commit 1bf704a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/node_io_watcher.cc
Expand Up @@ -80,6 +80,8 @@ void IOWatcher::Callback(EV_P_ ev_io *w, int revents) {
// io.start();
//
Handle<Value> IOWatcher::New(const Arguments& args) {
fprintf(stderr, "WARNING: don't use IOWatcher, it'll be removed in v0.9\n");

if (!args.IsConstructCall()) {
return FromConstructorTemplate(constructor_template, args);
}
Expand Down

0 comments on commit 1bf704a

Please sign in to comment.