From 1bf704a571b73d0d6dc6d2d488432c2f6ebf3890 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 21 Jun 2012 17:55:05 +0200 Subject: [PATCH] iowatcher: add deprecation warning --- src/node_io_watcher.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/node_io_watcher.cc b/src/node_io_watcher.cc index ad9a7b63fc..8812944d61 100644 --- a/src/node_io_watcher.cc +++ b/src/node_io_watcher.cc @@ -80,6 +80,8 @@ void IOWatcher::Callback(EV_P_ ev_io *w, int revents) { // io.start(); // Handle 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); }