From eec5dd9b1f439e6296b31ca95e71f13955e56645 Mon Sep 17 00:00:00 2001 From: ebner Date: Thu, 23 Mar 2017 13:09:44 +0100 Subject: [PATCH] Add utility function to Channels to create channels more easily --- src/main/java/org/epics/ca/Channels.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/epics/ca/Channels.java b/src/main/java/org/epics/ca/Channels.java index e575805..8bd9efb 100644 --- a/src/main/java/org/epics/ca/Channels.java +++ b/src/main/java/org/epics/ca/Channels.java @@ -58,6 +58,10 @@ public static CompletableFuture waitForValueAsync(Channel channel, T v return future.whenComplete((v,exception)->monitor.close()); // return future; } + + public static Channel create(Context context, String name){ + return create(context, name, Object.class); + } public static Channel create(Context context, String name, Class type){ Channel channel = context.createChannel(name, type);