Browse Source

iowatcher: add deprecation warning

v0.9.1-release
Ben Noordhuis 13 years ago
parent
commit
1bf704a571
  1. 2
      src/node_io_watcher.cc

2
src/node_io_watcher.cc

@ -80,6 +80,8 @@ void IOWatcher::Callback(EV_P_ ev_io *w, int revents) {
// io.start(); // io.start();
// //
Handle<Value> IOWatcher::New(const Arguments& args) { 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()) { if (!args.IsConstructCall()) {
return FromConstructorTemplate(constructor_template, args); return FromConstructorTemplate(constructor_template, args);
} }

Loading…
Cancel
Save