package com.atlassian.bitbucket.mesh.process;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.concurrent.Future;

public interface ProcessCreator {

    @Nullable
    <T> T run(@Nonnull ProcessParameters<T> parameters);

    @Nonnull
    <T> Future<T> start(@Nonnull ProcessParameters<T> parameters);
}
